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

realex_offsite: update avs code generation #256

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

Conversation

slogsdon
Copy link

No description provided.

The BILLING_CODE field is currently only formatted correctly for GB AVS
checks. This is where only the digits from the post code and the first
line of the address are submitted with a “|” between. For example:

<input type="hidden" name="BILLING_CODE" value="R90|123">

However, for US and CA the full post code and address should be submitted.
For example:

<input type="hidden" name="BILLING_CODE" value="50001|Flat 123">

We just need to introduce code here to only remove the non-digits when
the country is GB. For all other countries the full zip and first line
of the address should be submitted.
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