Headers
API version to be used. Format is in YYYY-MM-DD
Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
Body
Request body to create a transaction at cashfree using payment_session_id
Complete object for the pay api that uses payment method objects
"session__CvcEmNKDkmERQrxnx39ibhJ3Ii034pjc8ZVxf3qcgEXCWlgDDlHRgz2XYZCqpajDQSXMMtCusPgOIxYP2LZx0-05p39gC2Vgmq1RAj--gcn"
The card payment object is used to make payment using either plain card number, saved card instrument id or using cryptogram
- CardPaymentMethod
- UPIPaymentMethod
- NetBankingPaymentMethod
- AppPaymentMethod
- CardEMIPaymentMethod
- CardlessEMIPaymentMethod
- PaylaterPaymentMethod
- BanktransferPaymentMethod
{
"card": {
"channel": "link",
"card_number": "4111111111111111",
"card_holder_name": "Tushar Gupta",
"card_expiry_mm": "06",
"card_expiry_yy": "22",
"card_cvv": "900"
}
}
This is required if any offers needs to be applied to the order.
"faa6cc05-d1e2-401c-b0cf-0c9db3ff0f0b"
Response
OK
Order Pay response once you create a transaction for that order
total amount payable
Payment identifier created by Cashfree
One of ["upi", "netbanking", "card", "app", "cardless_emi", "paylater", "banktransfer"]
netbanking
, card
, upi
, app
, cardless_emi
, paylater
, banktransfer
One of ["link", "collect", "qrcode", "podQrCode"]. In an older version we used to support different channels like 'gpay', 'phonepe' etc. However, we now support only the following channels - link, collect, qrcode and podQrCode. To process payments using gpay, you will have to provide channel as 'link' and provider as 'gpay'
link
, collect
, qrcode
, podQrCode
, post
One of ["link", "custom", "form"]
link
, custom
, form
, post
the data object pay api
{
"url": "https://examplebank.com/sendTo/897?q",
"payload": {
"MD": 89811231231,
"PaReq": "89123l1j2l3j1ljkkl="
},
"content_type": "application/x-www-form-encoded",
"method": "post"
}