Use the new method for pay later button mapping

This commit is contained in:
Narek Zakarian 2025-03-13 17:46:34 +04:00
parent 3629b2b728
commit 19a923a6a6
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -95,7 +95,7 @@ class StylingSettingsMapHelper {
return $this->mapped_button_enabled_value( $styling_models, ApplePayGateway::ID );
case 'pay_later_button_enabled':
return $this->mapped_button_enabled_value( $styling_models, 'pay-later' );
return $this->mapped_pay_later_button_enabled_value( $styling_models, $payment_settings );
default:
foreach ( $this->locations_map() as $old_location_name => $new_location_name ) {