0

Razorpay Payment Gateway integration in asp.net MVC.

I am not getting error code in my callback Url on payment failure. On sucess I am getting razorpay_payment_id ,razorpay_order_id and razorpay_signature . But on failure the not receive the error array as expected. Please let me know if I am missing something and the documentation on callback URL is not much of help
I have set the parameter Redirect : true

[HttpPost]
public ActionResult VerifyPayment(string razorpay_payment_id, string razorpay_order_id, string razorpay_signature,string [] error)
Binoy Kumar
  • 422
  • 3
  • 17
  • 1
    It sounds like you might be encountering an issue with your Razorpay payment gateway configuration. When you have set the "Redirect: true" parameter, the payment gateway will automatically redirect the user back to your specified callback URL. In this case, you should be able to access the payment details, including the error array, from the query string parameters in the URL. It's possible that there may be a problem with your code that is preventing the error array from being passed to your callback URL. – Ishwor Khatiwada Feb 04 '23 at 08:27

0 Answers0