Update/default payments gateways recommendations (#39635)

* Update default gateways recommendations

* Add changelog entry

* Add Airwallex where missing
This commit is contained in:
Vlad Olaru 2024-03-08 21:24:32 +02:00 committed by GitHub
parent ba4260a344
commit ebd54a7c59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 25 additions and 15 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
Updated default payment gateways recommendation priorities.

View File

@ -1049,8 +1049,8 @@ class DefaultPaymentGateways {
'klarna_payments', 'klarna_payments',
'amazon_payments_advanced', 'amazon_payments_advanced',
), ),
'BG' => array( 'stripe', 'ppcp-gateway' ), 'BG' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway' ),
'HR' => array( 'ppcp-gateway' ), 'HR' => array( 'woocommerce_payments', 'ppcp-gateway' ),
'CH' => array( 'CH' => array(
'woocommerce_payments', 'woocommerce_payments',
'stripe', 'stripe',
@ -1058,15 +1058,16 @@ class DefaultPaymentGateways {
'mollie_wc_gateway_banktransfer', 'mollie_wc_gateway_banktransfer',
'klarna_payments', 'klarna_payments',
), ),
'CY' => array( 'stripe', 'ppcp-gateway', 'amazon_payments_advanced' ), 'CY' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway', 'amazon_payments_advanced' ),
'CZ' => array( 'stripe', 'ppcp-gateway' ), 'CZ' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway' ),
'DK' => array( 'DK' => array(
'woocommerce_payments',
'stripe', 'stripe',
'ppcp-gateway', 'ppcp-gateway',
'klarna_payments', 'klarna_payments',
'amazon_payments_advanced', 'amazon_payments_advanced',
), ),
'EE' => array( 'stripe', 'ppcp-gateway', 'airwallex_main' ), 'EE' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway', 'airwallex_main' ),
'ES' => array( 'ES' => array(
'woocommerce_payments', 'woocommerce_payments',
'stripe', 'stripe',
@ -1077,6 +1078,7 @@ class DefaultPaymentGateways {
'amazon_payments_advanced', 'amazon_payments_advanced',
), ),
'FI' => array( 'FI' => array(
'woocommerce_payments',
'stripe', 'stripe',
'ppcp-gateway', 'ppcp-gateway',
'mollie_wc_gateway_banktransfer', 'mollie_wc_gateway_banktransfer',
@ -1112,8 +1114,8 @@ class DefaultPaymentGateways {
'klarna_payments', 'klarna_payments',
'amazon_payments_advanced', 'amazon_payments_advanced',
), ),
'GR' => array( 'stripe', 'ppcp-gateway' ), 'GR' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway', 'airwallex_main' ),
'HU' => array( 'stripe', 'ppcp-gateway', 'amazon_payments_advanced' ), 'HU' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway', 'amazon_payments_advanced' ),
'IE' => array( 'IE' => array(
'woocommerce_payments', 'woocommerce_payments',
'stripe', 'stripe',
@ -1131,10 +1133,10 @@ class DefaultPaymentGateways {
'klarna_payments', 'klarna_payments',
'amazon_payments_advanced', 'amazon_payments_advanced',
), ),
'LV' => array( 'stripe', 'ppcp-gateway' ), 'LV' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway' ),
'LT' => array( 'stripe', 'ppcp-gateway' ), 'LT' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway' ),
'LU' => array( 'stripe', 'ppcp-gateway', 'amazon_payments_advanced' ), 'LU' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway', 'amazon_payments_advanced' ),
'MT' => array( 'stripe', 'ppcp-gateway' ), 'MT' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway' ),
'NL' => array( 'NL' => array(
'woocommerce_payments', 'woocommerce_payments',
'stripe', 'stripe',
@ -1144,7 +1146,7 @@ class DefaultPaymentGateways {
'klarna_payments', 'klarna_payments',
'amazon_payments_advanced', 'amazon_payments_advanced',
), ),
'NO' => array( 'stripe', 'ppcp-gateway', 'kco', 'klarna_payments' ), 'NO' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway', 'kco', 'klarna_payments' ),
'PL' => array( 'PL' => array(
'woocommerce_payments', 'woocommerce_payments',
'stripe', 'stripe',
@ -1157,12 +1159,14 @@ class DefaultPaymentGateways {
'woocommerce_payments', 'woocommerce_payments',
'stripe', 'stripe',
'ppcp-gateway', 'ppcp-gateway',
'airwallex_main',
'amazon_payments_advanced', 'amazon_payments_advanced',
), ),
'RO' => array( 'stripe', 'ppcp-gateway' ), 'RO' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway' ),
'SK' => array( 'stripe', 'ppcp-gateway' ), 'SK' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway' ),
'SL' => array( 'stripe', 'ppcp-gateway', 'amazon_payments_advanced' ), 'SL' => array( 'woocommerce_payments', 'stripe', 'ppcp-gateway', 'amazon_payments_advanced' ),
'SE' => array( 'SE' => array(
'woocommerce_payments',
'stripe', 'stripe',
'ppcp-gateway', 'ppcp-gateway',
'kco', 'kco',
@ -1213,6 +1217,7 @@ class DefaultPaymentGateways {
'payoneer-checkout', 'payoneer-checkout',
), ),
'JP' => array( 'JP' => array(
'woocommerce_payments',
'stripe', 'stripe',
'ppcp-gateway', 'ppcp-gateway',
'square_credit_card', 'square_credit_card',
@ -1227,6 +1232,7 @@ class DefaultPaymentGateways {
'ZA' => array( 'payfast', 'paystack' ), 'ZA' => array( 'payfast', 'paystack' ),
'NG' => array( 'paystack' ), 'NG' => array( 'paystack' ),
'GH' => array( 'paystack' ), 'GH' => array( 'paystack' ),
'AE' => array( 'woocommerce_payments' ),
); );
// If the country code is not in the list, return default priority. // If the country code is not in the list, return default priority.