From 48133aab78d956a9aad469af57735472fcca29ea Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Mon, 30 Oct 2023 15:45:06 +0000 Subject: [PATCH] Add Italy country eligibility to ApplePay and GooglePay. --- modules/ppcp-applepay/services.php | 54 +++++++++++++++++++---------- modules/ppcp-googlepay/services.php | 54 +++++++++++++++++++---------- 2 files changed, 72 insertions(+), 36 deletions(-) diff --git a/modules/ppcp-applepay/services.php b/modules/ppcp-applepay/services.php index 919f6a25b..a5fcfe331 100644 --- a/modules/ppcp-applepay/services.php +++ b/modules/ppcp-applepay/services.php @@ -130,6 +130,24 @@ return array( return apply_filters( 'woocommerce_paypal_payments_applepay_supported_country_currency_matrix', array( + 'CA' => array( + 'AUD', + 'CAD', + 'CHF', + 'CZK', + 'DKK', + 'EUR', + 'GBP', + 'HKD', + 'HUF', + 'JPY', + 'NOK', + 'NZD', + 'PLN', + 'SEK', + 'SGD', + 'USD', + ), 'GB' => array( 'AUD', 'CAD', @@ -148,6 +166,24 @@ return array( 'SGD', 'USD', ), + 'IT' => array( + 'AUD', + 'CAD', + 'CHF', + 'CZK', + 'DKK', + 'EUR', + 'GBP', + 'HKD', + 'HUF', + 'JPY', + 'NOK', + 'NZD', + 'PLN', + 'SEK', + 'SGD', + 'USD', + ), 'US' => array( 'AUD', 'CAD', @@ -156,24 +192,6 @@ return array( 'JPY', 'USD', ), - 'CA' => array( - 'AUD', - 'CAD', - 'CHF', - 'CZK', - 'DKK', - 'EUR', - 'GBP', - 'HKD', - 'HUF', - 'JPY', - 'NOK', - 'NZD', - 'PLN', - 'SEK', - 'SGD', - 'USD', - ), ) ); }, diff --git a/modules/ppcp-googlepay/services.php b/modules/ppcp-googlepay/services.php index 02a9ccc9d..4d1ef8986 100644 --- a/modules/ppcp-googlepay/services.php +++ b/modules/ppcp-googlepay/services.php @@ -90,6 +90,24 @@ return array( return apply_filters( 'woocommerce_paypal_payments_googlepay_supported_country_currency_matrix', array( + 'CA' => array( + 'AUD', + 'CAD', + 'CHF', + 'CZK', + 'DKK', + 'EUR', + 'GBP', + 'HKD', + 'HUF', + 'JPY', + 'NOK', + 'NZD', + 'PLN', + 'SEK', + 'SGD', + 'USD', + ), 'GB' => array( 'AUD', 'CAD', @@ -108,6 +126,24 @@ return array( 'SGD', 'USD', ), + 'IT' => array( + 'AUD', + 'CAD', + 'CHF', + 'CZK', + 'DKK', + 'EUR', + 'GBP', + 'HKD', + 'HUF', + 'JPY', + 'NOK', + 'NZD', + 'PLN', + 'SEK', + 'SGD', + 'USD', + ), 'US' => array( 'AUD', 'CAD', @@ -116,24 +152,6 @@ return array( 'JPY', 'USD', ), - 'CA' => array( - 'AUD', - 'CAD', - 'CHF', - 'CZK', - 'DKK', - 'EUR', - 'GBP', - 'HKD', - 'HUF', - 'JPY', - 'NOK', - 'NZD', - 'PLN', - 'SEK', - 'SGD', - 'USD', - ), ) ); },