Skip to content

Commit d9160e3

Browse files
authored
[ECE] Fix state mapping for Lithuania (#4501)
* add Lithuania in state mapping * add changelog
1 parent 8daa5f6 commit d9160e3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* Update - Add the number of pending webhooks to the Account status section
2828
* Fix - Prevent "Undefined array key charges_enabled" PHP warning when determining live‑mode status
2929
* Update - Deprecate `wc_gateway_stripe_process_payment`, `wc_gateway_stripe_process_redirect_payment` and `wc_gateway_stripe_process_webhook_payment` actions in favour of `wc_gateway_stripe_process_payment_charge`
30+
* Add - Add state mapping for Lithuania in express checkout
3031
* Tweak - Use wp_ajax prefix for its built-in security for Add Payment Method action
3132

3233
= 9.6.0 - 2025-07-07 =

includes/constants/class-wc-stripe-payment-request-button-states.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* 1. WC provides a dropdown list of states, but there's no state field in Chrome for the following countries:
1919
* AO (Angola), BD (Bangladesh), BG (Bulgaria), BJ (Benin), BO (Bolivia), DO (Dominican Republic),
2020
* DZ (Algeria), GH (Ghana), GT (Guatemala), HU (Hungary), KE (Kenya), LA (Laos),
21-
* LR (Liberia), MD (Moldova), NA (Namibia), NP (Nepal), PK (Pakistan),
21+
* LR (Liberia), LT (Lithuania), MD (Moldova), NA (Namibia), NP (Nepal), PK (Pakistan),
2222
* PY (Paraguay), RO (Romania), TZ (Tanzania), UG (Uganda), UM (United States Minor Outlying Islands),
2323
* ZA (South Africa), ZM (Zambia).
2424
* 2. Chrome does not provide a dropdown list of states for 161 countries in total, out of the 249 countries WC supports,
@@ -648,6 +648,8 @@ class WC_Stripe_Payment_Request_Button_States {
648648
'LK' => [],
649649
// Liberia.
650650
'LR' => [],
651+
// Lithuania.
652+
'LT' => [],
651653
// Luxembourg.
652654
'LU' => [],
653655
// Moldova.

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
137137
* Update - Add the number of pending webhooks to the Account status section
138138
* Fix - Prevent "Undefined array key charges_enabled" PHP warning when determining live‑mode status
139139
* Update - Deprecate `wc_gateway_stripe_process_payment`, `wc_gateway_stripe_process_redirect_payment` and `wc_gateway_stripe_process_webhook_payment` actions in favour of `wc_gateway_stripe_process_payment_charge`
140+
* Add - Add state mapping for Lithuania in express checkout
140141
* Tweak - Use wp_ajax prefix for its built-in security for Add Payment Method action
141142

142143
[See changelog for full details across versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

0 commit comments

Comments
 (0)