Afterpay / Klarna
First step is to setup your Stripe account to accept the Afterpay or Klarna payment method. This is located under Settings -> Payments -> Payment Methods where you must turn on the payment method you would like to support.

Second you will need to add the payment method to your Vrio Stripe merchant

Afterpay and Klarna SupportCurrently Afterpay and Klarna are supported through Stripe.
Only one time sales are supported. The API will return an error if there is a recurring offer.
These payment methods are also only available when processing an order. And will return an error when using authorize and capture.
Processing Using the API
Step 1 - Create and process the order
Create the order with POST /orders.
Payment Method IDs:
- Afterpay - 11
- Klarna - 12
Initiate the order processing by sending with POST /orders/{id}/process. When processing the order for either payment method you must also send the redirect_url
in the request body. This is where the customer will be redirected after confirming the payment with Stripe.
Step 2 - Redirect the customer to the Afterpay/Klarna page
The response from the previous call contains the attribute post_data
which is the url where you need to redirect the customer to in order to finalize the transaction.
Once completed by the customer, they will be redirected to the redirect_url you passed in the order process request, in all cases (approved or declined).
Step 3 - Finalize the order
Finally you need to call POST/orders/{id}/complete to finalize the process.
The transaction_token
should be the query parameter payment_intent
from the url that the customer was redirected to.
Example redirect url
https://www.google.com/?payment_intent=pi_3NMDLmCwGoCXM4Lt0jaemV4P&payment_intent_client_secret=pi_3NMDLmCwGoCXM4Lt0jaemV4P_secret_8qVqsHRlDpfwyBtlVnPm617d4
On Your Checkout
To update your checkout to accept payments Afterpay please visit this article.
To accept payments from Klarna please checkout this article.
Updated 21 days ago