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

INVALID_MDXI when ShippingCountry is empty #7

Open
wernerkrauss opened this issue Jun 10, 2020 · 0 comments
Open

INVALID_MDXI when ShippingCountry is empty #7

wernerkrauss opened this issue Jun 10, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@wernerkrauss
Copy link

Somehow when Name is set, Omnipay\Common\CreditCard also sets ShippingName.

In my case I didn't provide any further shipping address data and got an INVALID_MDXI, cause shipping country was empty and didn't match "two characters". I worked around this by resetting Card's ShippingName.

Maybe you can find a better check for returning shipping address than only checking for the name.

PS: Thanks for this great omnipay gateway!

@judgej judgej self-assigned this Jul 9, 2020
@judgej judgej added the bug Something isn't working label Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants