Resend OTP API

If your customer fails to authorize the payment due to incorrect OTP submission or submission of the OTP after it is expired, you can initiate a resend OTP request by using this API

HTTP Method: POST

Environment

Request parameters

ParameterDescriptionDescription
referenceId
mandatory
String Pass the ID returned in the response of the transaction request.bbed416d21dda9941a90cc72819c5b52
resendOtp
mandatory
String Pass the value as 1 to resend the OTP.1
data
optional
String You must pass {"payuPureS2S":"1"} as the value of this parameter.{"payuPureS2S":"1"}

Sample request

curl --location --request POST 'https://test.payu.in/ResponseHandler.php' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: PHPSESSID=ef4510abes5uo7ephv7o20ossc; PHPSESSID=63ff369680638' \
--data-urlencode 'referenceId=e1757a8d4c10e75987d9adb58e2d9a1b' \
--data-urlencode 'resendOtp=1'

📘

Note:

After collecting the OTP from your customer, Use the Submit OTP API to post the OTP to PayU.