Do not enable Pay Later when only messaging enabled

This commit is contained in:
Alex P 2023-09-01 09:42:23 +03:00
parent 2571d31ad8
commit d335e367ce
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -1085,9 +1085,7 @@ class SmartButton implements SmartButtonInterface {
$enable_funding = array( 'venmo' );
if ( $this->is_pay_later_button_enabled_for_location( $context ) ||
$this->is_pay_later_messaging_enabled_for_location( $context )
) {
if ( $this->is_pay_later_button_enabled_for_location( $context ) ) {
$enable_funding[] = 'paylater';
} else {
$disable_funding[] = 'paylater';