Native OTP Payments
In a conventional card payment journey, customers are redirected to the bank page to collect OTP. With this value addition, you can enhance their experience by collecting OTP at your page and submit it to Cashfree using our Authentication APIs This would eventually eliminate the need for redirecting to bank page thereby reducing payment failures that happen due to redirection drop offs, or slow internet speeds.
This feature is only enabled on request. Please reach out to us at [email protected] to get this feature.
For seamless OTP payments, follow these steps -
- While calling order pay API, pass the
channel
object for card payments aspost
. Here's an example request and response for the same.
curl --request POST \
--url https://sandbox.cashfree.com/pg/orders/sessions \
--header 'Content-Type: application/json' \
--header 'x-version: 2022-09-01' \
--data '{
"payment_session_id": "session_Cke8Y9LKs2CQP9KuTzsomExG1x5CKBLo-rWo8-YMBWgqgoA9On5YMzmCEZd_umDYxU_ZNXigfc9JPyJ-TgWxz9Om6keBxG2V8e8MynNCv8QT",
"payment_method":{
"card": {
"channel":"post",
"card_cvv": "123",
"card_holder_name": "rohit",
"card_number":"4706131211212123",
"card_expiry_mm": "03",
"card_expiry_yy": "27"
}
}
}'
{
"action": "post",
"cf_payment_id": 14909602643,
"channel": "post",
"data": {
"url": "https://sandbox.cashfree.com/pg/orders/pay/authenticate/14909602643",
"payload": null,
"content_type": "application/json",
"method": "post"
},
"payment_amount": 1.10,
"payment_method": "card"
}
- If the native OTP flow is enabled for the account, response will return action as 'post' and an authentication API in url which you need to call to submit the OTP.
Not all banks or bins support seamless OTP payments. It is possible that this request fall back to a regular response where you will have to redirect the user to the ACS page. In that case,
action
parameter in the response would have the valuelink
and you'll need to redirect to bank's page which is provided in url. Make sure to handle this case as well.
- Collect the OTP from your page and submit it to cashfree using Authentication API - Submit or Resend OTP.
Difference between Bank OTP Payment and Seamless OTP Payment
List of Banks that Support Seamless OTP Payments
Bank Name | Payment Mode | Card Type |
---|---|---|
STATE BANK OF INDIA | CREDIT CARD | visa |
STATE BANK OF INDIA | CREDIT CARD | mastercard |
STATE BANK OF INDIA | DEBIT CARD | visa |
STATE BANK OF INDIA | DEBIT CARD | mastercard |
AXIS BANK | CREDIT CARD | visa |
AXIS BANK | CREDIT CARD | mastercard |
AXIS BANK | DEBIT CARD | visa |
AXIS BANK | DEBIT CARD | mastercard |
HDFC BANK | CREDIT CARD | visa |
HDFC BANK | CREDIT CARD | mastercard |
HDFC BANK | DEBIT CARD | mastercard |
HDFC BANK | DEBIT CARD | visa |
ICICI BANK | CREDIT CARD | visa |
ICICI BANK | CREDIT CARD | mastercard |
ICICI BANK | DEBIT CARD | visa |
ICICI BANK | DEBIT CARD | mastercard |
KOTAK MAHINDRA BANK | CREDIT CARD | visa |
KOTAK MAHINDRA BANK | CREDIT CARD | mastercard |
KOTAK MAHINDRA BANK | DEBIT CARD | visa |
IDFC FIRST BANK | CREDIT CARD | visa |
IDFC FIRST BANK | DEBIT CARD | visa |
YES BANK | CREDIT CARD | visa |
RBL BANK | CREDIT CARD | visa |
RBL BANK | CREDIT CARD | mastercard |
INDUSIND BANK | CREDIT CARD | visa |
INDUSIND BANK | CREDIT CARD | mastercard |
CITI BANK | CREDIT CARD | visa |
CITI BANK | CREDIT CARD | mastercard |
IDFC FIRST BANK | CREDIT CARD | visa |
IDFC FIRST BANK | CREDIT CARD | mastercard |
Subscribe to Developer Updates
Updated 4 months ago