Spirit of Cadeau via Thunes: Drop In Guide
Integrate Spirit of Cadeau via Thunes on your website or mobile application with just a few lines of code.
Before you begin
This guide assumes that you know how to
Accept payments with Spirit of Cadeau via Thunes
Prepare the client session
Spirit of Cadeau via Thunes requires the following data to process a payment successfully. Pass the following data in the client session, or in the payment request (for manual payment creation).
Parameter Name | Required | Description |
---|---|---|
currencyCode | ✓ | 3-letter currency code in ISO 4217 format, e.g. USD for US dollars |
order ↳ lineItems | ✓ | Details of the line items of the order |
amount | ✓ | The amount you would like to charge the customer, in minor units. e.g. for $7, use 700 . |
Prepare the SDK for payments
Show Universal Checkout
Spirit of Cadeau via Thunes is automatically presented to the customer when calling Primer.showUniversalCheckout
.
Customization
Check the customization guide to learn how to customize payment method buttons.
Go live
You don’t need to do anything particular to go live — just make sure to use production credentials.
Show Universal Checkout
Spirit of Cadeau via Thunes is automatically presented to the customer when calling Primer.showUniversalCheckout
.
Customization
Check the customization guide to learn how to customize payment method buttons.
Go live
You don’t need to do anything particular to go live — just make sure to use production credentials.
Pre-requisites
Handling redirects is required for Payment Methods that present a webpage or open a 3rd party application for the customer to enter their credentials and validate their payment.
To enable this feature, ensure that you include the urlScheme
parameter when configuring the PrimerPaymentMethodOptions
object.
Set up redirects
Handle redirects
When the user is redirected back to the main app, the function application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool
is automatically called by iOS. Make sure to call Primer.shared.application...
to forward this information to the SDK so that Universal Checkout can continue the flow.
Show Universal Checkout
Spirit of Cadeau via Thunes is automatically presented to the customer when calling Primer.shared.showUniversalCheckout
.
Customization
Check the customization guide to learn how to customize payment method buttons.
Go live
You don’t need to do anything particular to go live — just make sure to use production credentials.
Show Universal Checkout
Spirit of Cadeau via Thunes is automatically presented to the customer when calling Primer.showUniversalCheckout
.
Customization
Check the customization guide to learn how to customize payment method buttons.
Go live
You don’t need to do anything particular to go live — just make sure to use production credentials.
Show Universal Checkout
Spirit of Cadeau via Thunes is automatically presented to the customer when calling Primer.showUniversalCheckout
.
Customization
Check the customization guide to learn how to customize payment method buttons.
Go live
You don’t need to do anything particular to go live — just make sure to use production credentials.