Recurring payments
Programmatic Card-on-File Setup with Immediate Charge (CIT + Save)
1. The Setup with Charge Flow
Parameter
Value
curl --location 'https://sandbox.hyperswitch.io/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: <enter your Hyperswitch API key here>' \
--data-raw '{
"amount": 6540,
"currency": "USD",
"profile_id": <enter the relevant profile id>,
"authentication_type": "no_three_ds",
"setup_future_usage":"off_session",
"customer_id": "customer123",
"description": "Its my first payment request",
"return_url": "https://example.com", //
}'2. Zero Dollar Authorization (Mandate-Only Setup)
Parameter
Value
Customer Consent Capture (Mandate Compliance)
Merchant-Initiated Transactions (MIT) – Decoupled Execution
Connector-Agnostic MIT Routing

Enabling Connector agnostic MITs
Routing example - CITs are routed through PSP-1 and all MITs through PSP-2

Metadata to be sent in CITs
Metadata to be sent in MITs
Last updated
Was this helpful?

