Skip to content

realex_offsite: update avs code generation#256

Open
slogsdon wants to merge 1 commit into
activemerchant:masterfrom
slogsdon:realex_offsite-update-avs-code
Open

realex_offsite: update avs code generation#256
slogsdon wants to merge 1 commit into
activemerchant:masterfrom
slogsdon:realex_offsite-update-avs-code

Conversation

@slogsdon
Copy link
Copy Markdown

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