mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Merge pull request #250 from woocommerce/PCP-256-disable-funding-credit-cards-aff
Disable funding credit cards affecting hosted fields, unset for GB
This commit is contained in:
commit
079e8e6acc
2 changed files with 12 additions and 13 deletions
|
@ -1918,15 +1918,6 @@ return array(
|
|||
unset( $fields['ppcp_disconnect_sandbox'] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable card for UK.
|
||||
*/
|
||||
$region = wc_get_base_location();
|
||||
$country = $region['country'];
|
||||
if ( 'GB' === $country ) {
|
||||
unset( $fields['disable_funding']['options']['card'] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Depending on your store location, some credit cards can't be used.
|
||||
* Here, we filter them out.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue