Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sambhav-aggarwal opened this issue Sep 25, 2017 · 2 comments
Open

Comments

@sambhav-aggarwal
Copy link
Contributor

sambhav-aggarwal commented Sep 25, 2017

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
Copy link
Contributor Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants