Merge pull request #127 from woocommerce/PCP-96-unblock-credit-for-UK

Remove disabling credit for UK
This commit is contained in:
Emili Castells 2021-03-11 12:28:06 +01:00 committed by GitHub
commit 8239a6881e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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' );