razorpay / razorpay-whmcs

Razorpay Payment Extension for WHMCS
16 stars 14 forks source link

Unsuccessful-WHMCS_ERROR: Payment to Razorpay Failed. Amount mismatch.. #40

Closed ankeshanand1 closed 2 years ago

ankeshanand1 commented 3 years ago

Razorpay Gateway Log return "Amount Mismatch". Payments gets authorized but not captured and neither are reflected in WHMCS.

Problem in : WHMCS 7.10.3

ankeshanand1 commented 2 years ago

Solved, If anyone else faces this problem, Just ping me at contact@ankeshanand.me . The problem is not related to Webhooks as told by Razorpay Technical Support but with gateway/razorpay.php . It happens specifically with Modulesgarden enabled WHMCS installation. Modulesgarden plugins update system_url from whatever.com to whatever.com/ and the afterwards url "/modules/gateways/callback/razorpay.php" which makes it "whatever.com//modules/gateways/callback/razorpay.php" and then the HTTP POST requests stops working. Just remove "/" in "/modules/gateways/callback/razorpay.php" and module will start working again.