Accept a payment with SunbitBeta
Learn how to set up your integration with Sunbit.
Caution
Stripe automatically presents your customers payment method options by evaluating their currency, payment method restrictions, and other parameters. We recommend that you configure your payment methods from the Stripe Dashboard using the instructions in Accept a payment.
If you want to continue manually configuring the payment methods you present to your customers with Checkout, use this guide. Otherwise, update your integration to configure payment methods in the Dashboard.
Sunbit is a single-use payment method where customers choose to pay in 3, 6, or 12 instalments. Customers are redirected from your website or app, authorise the payment with Sunbit, then return to your website or app. You get immediate notification of whether the payment succeeded or failed.
Determine compatibility
To support Sunbit payments, a Checkout Session must satisfy all of the following conditions:
- Prices for all line items must be in the same currency.
- If you have line items in different currencies, create separate Checkout Sessions for each currency.
Accept a payment
Note
Build an integration to accept a payment with Checkout before using this guide.
This guide describes how to enable Sunbit and shows the differences between accepting a card payment and using Sunbit.
Enable Sunbit as a payment method
When creating a new Checkout Session, you need to:
- Add
sunbit
to the list ofpayment_
.method_ types - Make sure all
line_
use the same currency.items
Fulfill your orders
After accepting a payment, learn how to fulfill orders.
Test your integration
When testing your Checkout integration, select Sunbit as the payment method and click the Pay button.