Saved Cards
Discover how to save cards with Tap Payments to offer a seamless and quick checkout experience to your customers.
Before using the save cards feature, ensure that it is enabled on your account. If you don't have it enabled already, just contact our customer support team and they can enable it for you.
- To save a card, create an Authorize, Charge, or Verify Card request and set the 3D Secure and save_card flags to true in the request body.
{
...
"threeDSecure": true,
"save_card": true,
...
}
- The transaction response will include the card ID, which contains card information such as the brand name, first six and last four digits of the card, and more.
{
...
"card": {
"id": "card_IQPXL3xxxxxxxxxxxxxxx",
"object": "card",
"first_six": "450875",
"brand": "VISA",
"last_four": "1019"
},
...
}
(Note: You will not receive the card ID if the save cards feature is not enabled. The response through 'post_url' or 'redirect_url' contains the same details.)
- Once you have the card ID, you can use it for various purposes, including charging returning customers, creating subscriptions, generating fresh tokens, and more.
Updated about 1 year ago