Headless SDK
Hyperswitch is designed to facilitate the integration and management of payment-related functionalities in a decoupled or headless architecture with flexibility to customize your checkout UI.
Customize the payment experience using Headless functions
1. Initialize the Hyperswitch SDK
// Source Hyperloader on your HTML file using the <script /> tag
hyper = Hyper.init("YOUR_PUBLISHABLE_KEY",{
customBackendUrl: "YOUR_BACKEND_URL",
//You can configure this as an endpoint for all the api calls such as session, payments, confirm call.
});2. Create a Payment Intent
3. Initialize your Payment Session
paymentSession = hyper.initPaymentSession({
clientSecret: client_secret,
});options (Required)
Description
4. Craft a customized payments experience
options (Required)
Description
confirmParams
Description
Last updated
Was this helpful?

