Skip to content

Apple Pay - validate country against allow list for orders/shipping#799

Open
agibson-godaddy wants to merge 5 commits intorelease/6.0.1from
mwc-10109
Open

Apple Pay - validate country against allow list for orders/shipping#799
agibson-godaddy wants to merge 5 commits intorelease/6.0.1from
mwc-10109

Conversation

@agibson-godaddy
Copy link
Contributor

Summary

This adds a new CheckoutHelper class with some country validation methods. It then also updates the Apple Pay integration to check the country code against the allow lists for ordering and shipping, to ensure people in other countries cannot place orders when they should not be able to.

Story: MWC-10109

Release: #791

Details

Additional details to expand on the summary, if needed

QA

  1. Use the Apple Pay gateway
  2. Configure WooCommerce settings to allow selling and shipping to all countries
    image
  3. Place an order using Apple Pay.
    • Successful
  4. Change settings to be more restrictive so that your country (whatever you use for Apple Pay) is not allowed.
  5. Place an order using Apple Pay.
    • You are not allowed / you get an error

Before merge

  • I have confirmed these changes in each supported minor WooCommerce version

@agibson-godaddy agibson-godaddy self-assigned this Feb 2, 2026
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