Allow only paylater, venmo apm in express block

This commit is contained in:
Alex P 2023-04-27 15:45:39 +03:00
parent 68758500fa
commit e2e2897714
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -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() ) {