mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Merge pull request #127 from woocommerce/PCP-96-unblock-credit-for-UK
Remove disabling credit for UK
This commit is contained in:
commit
8239a6881e
1 changed files with 0 additions and 8 deletions
|
@ -731,14 +731,6 @@ class SmartButton implements SmartButtonInterface {
|
||||||
$disable_funding[] = 'card';
|
$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 ) );
|
$params['disable-funding'] = implode( ',', array_unique( $disable_funding ) );
|
||||||
|
|
||||||
$smart_button_url = add_query_arg( $params, 'https://www.paypal.com/sdk/js' );
|
$smart_button_url = add_query_arg( $params, 'https://www.paypal.com/sdk/js' );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue