ChargX Documentation

Recurring payments

This section provides step-by-step examples (or *recipes*) showing how to use Recurring payments.

Steps

1. Configure product/variants

Before you start, create a Product, its Variants and set prices in Dashboard. Follow the guide How to create Product.

2. Retrieve pretransact keys

The very 1st step is to Retrieve pretransact keys via API. The response will contain initial data for creating recurring payments subscription.

3. Exchange credit card details for a token

Once pretransact keys retrieved, use it in request to exchange credit card details for a token

4. Subscribe

Finally, create a subscription by calling Create Subscription endpoint with the token received at the previous step and the variant ID created in Step 1.