mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
remove disabling credit for UK
This commit is contained in:
parent
2d1507863b
commit
94cd038341
1 changed files with 0 additions and 8 deletions
|
@ -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' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue