mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Do not enable Pay Later when only messaging enabled
This commit is contained in:
parent
2571d31ad8
commit
d335e367ce
1 changed files with 1 additions and 3 deletions
|
@ -1085,9 +1085,7 @@ class SmartButton implements SmartButtonInterface {
|
||||||
|
|
||||||
$enable_funding = array( 'venmo' );
|
$enable_funding = array( 'venmo' );
|
||||||
|
|
||||||
if ( $this->is_pay_later_button_enabled_for_location( $context ) ||
|
if ( $this->is_pay_later_button_enabled_for_location( $context ) ) {
|
||||||
$this->is_pay_later_messaging_enabled_for_location( $context )
|
|
||||||
) {
|
|
||||||
$enable_funding[] = 'paylater';
|
$enable_funding[] = 'paylater';
|
||||||
} else {
|
} else {
|
||||||
$disable_funding[] = 'paylater';
|
$disable_funding[] = 'paylater';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue