Skip to main content
In order to make use of the Web SDK you need to create a client-sharable, short-lived secret. This secret is called a session as it represents a session between your web application and the Hellgate®.
1

Create Session

Create a session for tokenization using the session API.
Example: Create session
The response includes the session_id of the created session.
Example: Session response
Want to confirm the session works before writing any browser code? Paste the session_id into the WebSDK testing page to run the full card flow against it.
2

Use the SDK

Send the session_id to your web application in the customer’s browser. The session_id is safe to share with the client.
You must not distribute your server-side API keys to the clients. Use the provided session_id, which is short-lived (with a default of 15 minutes) and has a very limited scope. This protects you from malicious acts.
After the session_id is handed over to the client, initialise the headless SDK.

Load the SDK

The SDK is distributed via our CDN or from NPM.
Example: Install via NPM

Initialise the SDK

With the session_id and the loaded SDK, initialise a headless client for your browser session.
Example: Initialise client
The headless client keeps a secure connection to the Hellgate® backend. Connect it with your application to proceed.
3

Tokenize Card Data

Hellgate’s Headless SDK enables secure card payment data entry, yet is fully embedded in your web application. The secure communication channel between the SDK and the Hellgate® allows the sensitive card data to be exchanged for so-called tokens. These are made available to you as a payment method.
Use the CARD handler to tokenize cardholder data.
Example: Get card handler
Based on the handler, two form types can be rendered in your front-end.

One-Line Card Form

A compact way to collect card details: separate entry fields rendered as one unit.
Example: One-line card form integration

Separated Card-Data Fields

For more flexibility in layout, create individual elements and mount them separately.
Example: Separated card fields

Separated expiration month and year

Use expiryDateElement: 'separate' to get distinct month and year fields.
Example: Separate month and year fields