razorpay / razorpay-whmcs

Razorpay Payment Extension for WHMCS
16 stars 14 forks source link

Payment is not captured automatically after order is placed. #9

Open sambhav-aggarwal opened 7 years ago

sambhav-aggarwal commented 7 years ago

After the user places order and make the payment, the payment status is changed to Authorized on razorpay, however, not captured automatically, which shows the invoice status as Unpaid on WHMCS-v7.2.3-release.1.

Due to this, the user thinks that payment has failed.

sambhav-aggarwal commented 7 years ago

The issue that I mentioned earlier occurs only when the base currency of the system is different than the invoice currency. Suppose the base currency of the system is USD but the user purchased in INR, then in the callback file the conversion still takes due to which the amount in capture request is different than the authorised amount, hence it results in an error.

I have fixed this in pull request #10

captn3m0 commented 7 years ago

Thanks for the PR, we'll be reviewing it shortly.