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

fix paymentMethod prepaid getBalance query #1472

Merged
merged 1 commit into from Oct 9, 2018

Conversation

marcogbarcellos
Copy link
Contributor

Prepaid getBalance method is considering only spent transactions that have the same currency of that prepaid card but it should instead look for all transactions and when a transaction has a different currency it must convert to the paymentMethod.currency as an estimation so it can check the actual balance of the prepaid card.

fixes opencollective/opencollective#1348

@marcogbarcellos marcogbarcellos merged commit b006811 into master Oct 9, 2018
@marcogbarcellos marcogbarcellos deleted the fix/1348-prepaid-getbalance branch October 10, 2018 20:59
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

Successfully merging this pull request may close these issues.

Prepaid getBalance method not working properly on api
1 participant