Skip to content

Check if country is US and add state to request #2

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

shaunpreston
Copy link

No description provided.

Netbanx gives a parse error if the state value is blank or not US
If Country is US then we include the state in the request. Otherwise
ignore for international. This stops the parse error received from
netbanx.
@shaunpreston
Copy link
Author

Should be good now mate :)

@amacneil
Copy link
Member

Would be good to add some tests for this too. You can just copy the layout in this or other omnipay gateways (or if you can't figure it out, I'll add them and merge this when I get time)

@shaunpreston
Copy link
Author

Hi this is still a problem for non US payments

@greydnls
Copy link

@shaunpreston Can you add in some tests for the change, and I'll happily merge.

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.

3 participants