Docs

Log in to read the version of docs relevant to your site, or use the dropdown versions

Stripe SEPA via API

This article covers

How to setup checkout via API for SEPA payments

Summary

This article details the workflow of checkout via API for SEPA payments in Chargebee:

  1. Create a checkout URL using the checkout new or existing subscription API
  2. Pass the URL in Chargebee.JS to open the checkout as a modal popup.
  3. Set checkout callbacks using Chargebee.JS
    1. When the checkout process is successful the 'success' callback is triggered.
  4. In the 'success' callback, pass the hosted page ID to your backend server, which is used in the Retrieve a hosted page ID API to fetch the payment source ID for the customer.
  5. Use this ID to retrieve the Direct Debit agreement using the retrieve direct debit agreement PDF API.
  6. The retrieve agreement API response will contain the URL where the Direct Debit agreement is hosted.
  7. Pass this to the Chargebee.JS to load the agreement in the modal popup.

Was this article helpful?