Submit a card OTP for a reference id, or resend that OTP.
These two pages complete a card OTP. Submit Card OTP checks the OTP for a reference_id. Resend Card OTP sends a new OTP for that same reference_id.
Authentication
Both pages use a Bearer token.
| Environment | Base URL |
|---|---|
| Test | https://test-partnerapilayer.payu.in/apilayer |
| Production | https://api.payu.in |
Send Authorization: Bearer {access_token} on both calls. Both also require merchant_id, reseller_id, hash, and reference_id.
| Page | Route | Required body |
|---|---|---|
| Submit Card OTP | POST /partner/submitCardOtp | merchant_id, reseller_id, hash, reference_id, otp |
| Resend Card OTP | POST /partner/resendCardOtp | merchant_id, reseller_id, hash, reference_id |
Endpoints
These are the Card OTP pages.
POST /partner/submitCardOtp. Send the OTP with the reference id. A verified OTP returns txnStatus, mihpayid, and the message "OTP verified successfully". A failure uses status "failed".
POST /partner/resendCardOtp. Send the same reference id without an OTP. On success the message is "OTP resent successfully".
How It Works
Submit the OTP
Call Submit Card OTP with merchant_id, reseller_id, hash, reference_id, and otp.
Read the submit result
A verified OTP on Submit Card OTP adds txnStatus, mihpayid, and "OTP verified successfully". Failures return status failed and a message.
Resend the OTP
Call Resend Card OTP with the same reference_id. Do not send otp. The success message is "OTP resent successfully".
