From 94cd038341183d0462299b5fe0aadb46f043dd34 Mon Sep 17 00:00:00 2001 From: Kirill Braslavsky Date: Tue, 23 Feb 2021 15:09:44 +0200 Subject: [PATCH] remove disabling credit for UK --- modules/ppcp-button/src/Assets/class-smartbutton.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/ppcp-button/src/Assets/class-smartbutton.php b/modules/ppcp-button/src/Assets/class-smartbutton.php index 8c139cf59..93aa44d74 100644 --- a/modules/ppcp-button/src/Assets/class-smartbutton.php +++ b/modules/ppcp-button/src/Assets/class-smartbutton.php @@ -731,14 +731,6 @@ class SmartButton implements SmartButtonInterface { $disable_funding[] = 'card'; } - /** - * Disable card for UK. - */ - $region = wc_get_base_location(); - $country = $region['country']; - if ( 'GB' === $country ) { - $disable_funding[] = 'credit'; - } $params['disable-funding'] = implode( ',', array_unique( $disable_funding ) ); $smart_button_url = add_query_arg( $params, 'https://www.paypal.com/sdk/js' );