Skip to content

Commit bb7a67a

Browse files
authored
Fix wrong iso code for UK for Alipay and WeChat (#3419)
1 parent 88fc09a commit bb7a67a

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* Tweak - Use order ID from 'get_order_number' in stripe intent metadata.
2727
* Fix - Ensure payment tokens are detached from Stripe when a user is deleted, regardless of if the admin user has a Stripe account.
2828
* Fix - Address Klarna availability based on correct presentment currency rules.
29+
* Fix - Use correct ISO country code of United Kingdom in supported country and currency list of AliPay and WeChat.
2930

3031
= 8.6.1 - 2024-08-09 =
3132
* Tweak - Improves the wording of the invalid Stripe keys errors, instructing merchants to click the "Configure connection" button instead of manually setting the keys.

client/utils/use-payment-method-currencies.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const getAliPayCurrencies = ( isUpeEnabled ) => {
3232
case 'CA':
3333
upeCurrencies = [ 'CAD', 'CNY' ];
3434
break;
35-
case 'UK':
35+
case 'GB':
3636
upeCurrencies = [ 'GBP', 'CNY' ];
3737
break;
3838
case 'HK':
@@ -124,7 +124,7 @@ const getWechatPayCurrencies = () => {
124124
case 'SG':
125125
upeCurrencies = [ 'SGD', 'CNY' ];
126126
break;
127-
case 'UK':
127+
case 'GB':
128128
upeCurrencies = [ 'GBP', 'CNY' ];
129129
break;
130130
case 'US':

includes/payment-methods/class-wc-stripe-upe-payment-method-alipay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function get_supported_currencies() {
5959
case 'CA':
6060
$currency = [ 'CAD', 'CNY' ];
6161
break;
62-
case 'UK':
62+
case 'GB':
6363
$currency = [ 'GBP', 'CNY' ];
6464
break;
6565
case 'HK':

includes/payment-methods/class-wc-stripe-upe-payment-method-wechat-pay.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct() {
1818
$this->stripe_id = self::STRIPE_ID;
1919
$this->title = __( 'WeChat Pay', 'woocommerce-gateway-stripe' );
2020
$this->is_reusable = false;
21-
$this->supported_countries = [ 'AT', 'AU', 'BE', 'CA', 'CH', 'DE', 'DK', 'ES', 'FI', 'FR', 'HK', 'IE', 'IT', 'JP', 'LU', 'NL', 'NO', 'PT', 'SE', 'SG', 'UK', 'US' ];
21+
$this->supported_countries = [ 'AT', 'AU', 'BE', 'CA', 'CH', 'DE', 'DK', 'ES', 'FI', 'FR', 'HK', 'IE', 'IT', 'JP', 'LU', 'NL', 'NO', 'PT', 'SE', 'SG', 'GB', 'US' ];
2222
$this->supported_currencies = [
2323
'AUD',
2424
'CAD',
@@ -81,7 +81,7 @@ public function get_supported_currencies() {
8181
case 'SG':
8282
$currency = [ 'SGD', 'CNY' ];
8383
break;
84-
case 'UK':
84+
case 'GB':
8585
$currency = [ 'GBP', 'CNY' ];
8686
break;
8787
case 'US':

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,6 @@ If you get stuck, you can ask for help in the Plugin Forum.
154154
* Tweak - Use order ID from 'get_order_number' in stripe intent metadata.
155155
* Fix - Ensure payment tokens are detached from Stripe when a user is deleted, regardless of if the admin user has a Stripe account.
156156
* Fix - Address Klarna availability based on correct presentment currency rules.
157+
* Fix - Use correct ISO country code of United Kingdom in supported country and currency list of AliPay and WeChat.
157158

158159
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

0 commit comments

Comments
 (0)