Order Pay
Use this API when you have already created the orders and want Cashfree to process the payment. To use this API S2S flag needs to be enabled from the backend. In case you want to use the cards payment option the PCI DSS flag is required, for more information send an email to ācare@cashfree.comā.
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
Complete object for the pay api that uses payment method objects
The card payment object is used to make payment using either plain card number, saved card instrument id or using cryptogram
This is required if any offers needs to be applied to the order.
Response
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"]. In an older version we used to support different channels like 'gpay', 'phonepe' etc. However, we now support only the following channels - link, collect and qrcode. To process payments using gpay, you will have to provide channel as 'link' and provider as 'gpay'
link
, collect
, qrcode
, post
One of ["link", "custom", "form"]
link
, custom
, form
, post
the data object pay api
Was this page helpful?