This feature allows you to accept payments from your customer’s card without requiring the customer’s card details. This can be used for recurring payments, subscriptions, automated savings, etc.
How it works
A first transaction requiring customer authorization is done from your web or mobile application.
Get a token linked to the card.
Save the card token.
Charge the card using the saved token.
Charge the customer’s card from your web or mobile application.
When a customer initiates a card transaction on either your web or mobile application and provides their card details, you charge their card for that initial payment to confirm the validity of the card.
Get card token
Once the first card transaction is successful, you get a card token by performing a re-query on the transaction using the Get Transaction Status API, for more info - check this link. When you call this endpoint, you'll obtain a response with a cardDetails object in the request body, which has the cardToken field, which holds the card’s token.
Once you have gotten the token for the transaction, you store the token and the email address used for the transaction. It is important to save the email for the original transaction with the obtained token as this pair of information must match for subsequent automated payments using the card token.
Charge the Card Token
When a customer selects the card for a new transaction or when you want to charge them subsequently, you make a request to the Charge Card Token endpoint with the saved token and the customer’s email. Ensure you send the same email used for the initial transaction when making this request.
To enable this feature on your integration, kindly reach out to the Monnify integration team via email@example.com to help activate this feature.