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

[ENGA3-1178]: Billing address will be sent to create token only if all the fields required for AVS are present. #369

Merged
merged 10 commits into from
Apr 26, 2023

Conversation

aashishgurung
Copy link
Contributor

1. Objective

Send billing address to create token only if all the fields required for AVS are present.

Jira Ticket: #1178

2. Description of change

Created a function getBillingAddress that will fetch the billing address of the field specified in the billingAddressFields array. The function returns an object with address details as per token API requirement if all the fields required for AVS are present. Otherwise the function returns null indicating billing address is not complete.

When billing address is not complete as per AVS.
Screenshot 2566-04-18 at 16 58 57

When billing address is complete as per AVS but street address 2 is missing.
Screenshot 2566-04-18 at 16 55 45

When billing address is complete as per AVS and street address 2 is present.
Screenshot 2566-04-18 at 15 27 40

🔧 Environments:

  • WooCommerce: v6.7.0
  • WordPress: v6.0.2
  • PHP version: 8.1
  • Omise WooCommerce: 5.0.0

…if all the fields required for AVS is present.
ajzkk
ajzkk previously approved these changes Apr 20, 2023
danfowler
danfowler previously approved these changes Apr 26, 2023
@aashishgurung aashishgurung merged commit 4a6c214 into develop Apr 26, 2023
@aashishgurung aashishgurung deleted the feature/ENGA3-1178-cc-avs-address branch May 3, 2023 10:16
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