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

passing currency as a string to DecimalMoneyParser is not supported #230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chargePanelAndreas
Copy link

Omnipay/common supports moneyphp 3.1 and 4, but in AbstractRequest::getMoney currency is passed to the money parser as a string which is deprecated in 3.1 and unsupported in 4. I noticed this when using the applicationFee param which does not work because of this with Money PHP 4.

This fix works with both Money 3.1 and 4.

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.

1 participant