Store your card credentials with Cashfree in a secure manner.
create order
api. You do this by sending customer_id
parameter in the (create order api request)[/api/payments/latest/orders/create].
Here’s a sample request for creating an order using your desired backend language. Cashfree offers backend SDKs to simplify the integration process.
You can find the SDKs here.
order_id
and payment_session_id
that you need for subsequent steps.
You can view all the complete api request and response for /orders
here.
save_instrument
to true
after obtaining the customer’s consent. Once consent is received, Cashfree will initiate a token generation request with the card networks. Cashfree will first process the payment, completing the 2FA (two-factor authentication) step before sending the token generation request. If 2FA is not successfully completed—meaning the payment fails—Cashfree will not send the token provisioning request to the card networks, and the card will not be tokenized.
customer_id
. You can then display these cards to the customer.
instrument_uid
, you can pass that in the order pay api to intiate payment for a specific card.