mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Allow only paylater, venmo apm in express block
This commit is contained in:
parent
68758500fa
commit
e2e2897714
1 changed files with 4 additions and 1 deletions
|
@ -1014,7 +1014,10 @@ class SmartButton implements SmartButtonInterface {
|
|||
}
|
||||
|
||||
if ( in_array( $context, array( 'checkout-block', 'cart-block' ), true ) ) {
|
||||
$disable_funding[] = 'card';
|
||||
$disable_funding = array_diff(
|
||||
array_keys( $this->all_funding_sources ),
|
||||
array( 'venmo', 'paylater' )
|
||||
);
|
||||
}
|
||||
|
||||
if ( $this->is_free_trial_cart() ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue