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

Multiple Payment Methods found the problem #11

Open
swissmexxa opened this issue Oct 14, 2021 · 0 comments
Open

Multiple Payment Methods found the problem #11

swissmexxa opened this issue Oct 14, 2021 · 0 comments

Comments

@swissmexxa
Copy link

Hi

Thank you very much for this implementation of omnipay for datatrans. You mention that giving multiple payment methods at once will result in a "payment is not valid" message. This is because you send the data in GET Request as &paymentMethod=VIS,ECA instead of &paymentMethod=VIS&paymentMethod=ECA.

In POST Request it is the same. Instead of submitting the form data as paymentMethod=VIS,ECA it should be send with two paymentMethod fields like

paymentMethod=VIS
paymentMethod=ECA

I think therefore the paymentMethod field should be an array and not a string. Would it be possible for you to change your code?

Thank you very much.

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

1 participant