Create a payments page
Customize logo, images, and colors.
Built-in support for Apple Pay, and Google Pay.
View the demo to see a hosted example.
Accept a payment
Note
Refer to your platform profile to determine if either direct charges or destination charges is right for your business.
Create a subscription
You can create a recurring payment on a connected account with subscriptions. Subscriptions are created with direct charges. Optionally, specify an application_fee_percent to direct a percentage of each invoice payment to your platform.
The Checkout page uses the brand settings of the connected account, including its business name, icon, logo, and color. See the Customize branding section for more information.
Note
You can include a combination of one-time line items and recurring plans in a Checkout Session. If specified, application_fee_percent
will apply to both one-time and recurring items.
Create a Checkout Session Client and Server
A Checkout Session controls what your customer sees in the Stripe-hosted payment page such as line items, the order amount and currency, and acceptable payment methods.
Add a checkout button to your website that calls a server-side endpoint to create a Checkout Session.
<html> <head> <title>Checkout</title> </head> <body> <form action="/create-checkout-session" method="POST"> <button type="submit">Checkout</button> </form> </body> </html>
On your server, make the following call to the Stripe API. After creating a Checkout Session, redirect your customer to the URL returned in the response.
Customize branding
Your platform and Standard connected accounts can use the Branding settings in the Dashboard to customize branding on the payments page. When performing destination charges, Checkout uses the brand settings of the platform account. For direct charges, and destination charges with on_behalf_of
, Checkout uses the brand settings of the connected account. Platforms can configure the brand settings of connected Express and Custom accounts using the Accounts API.
The account update API accepts the following parameters for branding:
icon
- Displayed next to the business name in the header of the Checkout page.logo
- If specified, displayed instead of the icon and business name in the header of the Checkout page.primary_color
- Used as the background color on the Checkout page.secondary_color
- Used as the button color on the Checkout page.
Enable payment methods
View your payment methods settings and enable the payment methods you want to support. Card payments, Google Pay, and Apple Pay are enabled by default but you can enable and disable payment methods as needed.
Before the payment form is displayed, Stripe evaluates the currency, payment method restrictions, and other parameters to determine the list of supported payment methods. Payment methods that increase conversion and that are most relevant to the currency and customer’s location are prioritized. Lower priority payment methods are hidden in an overflow menu.