Subscriptions with Card On File
This guide provides a simplified overview of how to implement subscription payments using our Card On File API.
Overview
Our Card On File API lets you securely store customer payment information and charge recurring payments without handling sensitive card data after the initial tokenization.
Implementation Steps
Step 1: Store the Customer's Card
Collect the customer's card information securely via your PCI-compliant form
Call our Card On File API to store the card
Receive a
card_identifier
token that represents the stored card
Step 2: Create a Subscription
Associate the
card_identifier
with your internal subscription recordGenerate a unique
external_subscription_id
in your systemStore both identifiers for future transactions
Step 3: Process Recurring Charges
When it's time to charge the customer:
Call our PCI Compliant deposit endpoint
Instead of sending full card details, send:
The
card_identifier
tokenYour
external_subscription_id
Example request:
Step 4: Handle Subscription Lifecycle
Remember to implement logic for:
Subscription renewals
Failed payments and retries
Subscription cancellations
Card updates and replacements
Next Steps
Last updated
Was this helpful?