Skip to content

Conversation

diegocurbelo
Copy link
Member

@diegocurbelo diegocurbelo commented Sep 23, 2025

Fixes STRIPE-726
Fixes #4691

Changes proposed in this Pull Request:

This PR extends the current state mapping to add the mappings for the Ukrainian regions (ex: Kyiv -> UA-30).

Testing instructions

Copied from the issue report

  1. Enable Stripe Payment Request buttons (Google Pay).
  2. Set the store country to Slovenia, and allow selling to all countries.
  3. Try to pay with a Ukrainian card via Google Pay.
  4. Verify that the checkout succeeds.

  • Covered with tests (or have a good reason not to test in description ☝️)
  • Tested on mobile (or does not apply)

Changelog entry

  • This Pull Request does not require a changelog entry. (Comment required below)
Changelog Entry Comment

Comment

Post merge

@diegocurbelo diegocurbelo marked this pull request as ready for review September 29, 2025 15:25
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds state code mappings for Ukrainian regions to support Stripe payment request buttons. The implementation maps Ukrainian regional names (in English and Ukrainian) to their corresponding ISO 3166-2 subdivision codes.

  • Adds complete mapping for all Ukrainian oblasts and cities with their ISO codes
  • Updates changelog entries to document the fix

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
includes/constants/class-wc-stripe-payment-request-button-states.php Adds comprehensive Ukrainian state mapping with regional codes and names in multiple languages
readme.txt Documents the Ukraine state mapping fix in the changelog
changelog.txt Documents the Ukraine state mapping fix in the changelog

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

Google Pay / Apple Pay – invalid state codes for Ukraine (and similar countries)

1 participant