Add Card
Add a credit card or debit card of a customer to JusPay Locker. customer_id parameter identifies the customer to whom this card belongs.
As a part of CoFT regulations, the above API can be used for only international cards. Using it for storing domestic cards will lead to failure.
Consists of two parts.
Username: API Key obtained from Juspay dashboard
Password: Empty string
Example:-
Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
application/x-www-form-urlencoded
Merchant ID provided by Juspay
We recommend passing the customer_id as the x-routing-id. If the customer is checking out as a guest, you can pass an alternative ID that helps track the payment session lifecycle. For example, this could be an Order ID or Cart ID.
This ID is associated with the customer. It plays a key role in ensuring consistency and maintaining connections across different systems. If you fail to pass the same x-routing-id for the same customer in all related API calls, it could lead to issues with API functionality. Therefore, it’s crucial that you use the same x-routing-id for all requests tied to the same customer.
Example:- customer_1122
The token obtained during tokenize card API. If token is used within 15 minutes, then card_number, card_exp_year, and card_exp_month are not required. merchant_id and customer_id are required in either case.
Merchant ID which represents the merchant storing the card
Customer ID which represents the user uniquely
Email address of the customer
A valid card number.
Required only if token is not used in the request.
Expiry year of the card (Format: yyyy) Example: 2020
Required only if token is not used in the request.
Expiry month of the card (Format: mm) Example: 06
Required only if token is not used in the request.
Cardholder name
A tag or a label for the card so that the user can easily identify the card
c75a9fca-1121-418e-973c-47d5c4971456
df2c47951a71e4486827039fad7b039a
c7uapov1smt3a0rd5f9b1l21i

