You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to handle the bad request error when it failed on the razorpay payment gateway, i have written Below code which is mention in the razorpay payment gateway Docs. i have successfully implemented success request however getting error on the bad request. please find below code for which is i am trying to implement
{
"key_id": "vghbjnkm", // Enter the Key ID generated from the Dashboard
//"key_secret": "vhbhbbhhbhbhbh", // Enter the Key ID generated from the Dashboard
"amount": $('#payingtotal_amount').val()* 100, // Amount is in currency subunits. Default currency is INR. Hence, 50000 refers to 50000 paise or INR 500.
"currency": "INR",
"name": "FLOWERET",
"description": $('#paydescription').val(),
"image": "/favicon.png",
"order_id": $('#razorpay_order_id').val(),//This is a sample Order ID. Create an Order using Orders API. (https://razorpay.com/docs/payment-gateway/orders/integration/#step-1-create-an-order). Refer the Checkout form table given below
"handler": function (response) {
console.log("response razorpay", response)
console.log("response razorpay", response.status)
alert(response.razorpay_payment_id);
alert(response.razorpay_signature);
}
}
The text was updated successfully, but these errors were encountered:
I am trying to handle the bad request error when it failed on the razorpay payment gateway, i have written Below code which is mention in the razorpay payment gateway Docs. i have successfully implemented success request however getting error on the bad request. please find below code for which is i am trying to implement
{
"key_id": "vghbjnkm", // Enter the Key ID generated from the Dashboard
//"key_secret": "vhbhbbhhbhbhbh", // Enter the Key ID generated from the Dashboard
"amount": $('#payingtotal_amount').val()* 100, // Amount is in currency subunits. Default currency is INR. Hence, 50000 refers to 50000 paise or INR 500.
"currency": "INR",
"name": "FLOWERET",
"description": $('#paydescription').val(),
"image": "/favicon.png",
"order_id": $('#razorpay_order_id').val(),//This is a sample Order ID. Create an Order using Orders API. (https://razorpay.com/docs/payment-gateway/orders/integration/#step-1-create-an-order). Refer the Checkout form table given below
"handler": function (response) {
console.log("response razorpay", response)
console.log("response razorpay", response.status)
alert(response.razorpay_payment_id);
alert(response.razorpay_signature);
}
}
The text was updated successfully, but these errors were encountered: