Use the new button enabled mapping function.

This commit is contained in:
Narek Zakarian 2025-02-26 17:00:10 +04:00
parent 48898edcd9
commit 26bc7ce02c
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -84,10 +84,13 @@ class StylingSettingsMapHelper {
return $this->mapped_disabled_funding_value( $styling_models );
case 'googlepay_button_enabled':
return $this->mapped_google_pay_or_apple_pay_enabled_value( $styling_models, 'googlepay' );
return $this->mapped_button_enabled_value( $styling_models, 'googlepay' );
case 'applepay_button_enabled':
return $this->mapped_google_pay_or_apple_pay_enabled_value( $styling_models, 'applepay' );
return $this->mapped_button_enabled_value( $styling_models, 'applepay' );
case 'pay_later_button_enabled':
return $this->mapped_button_enabled_value( $styling_models, 'pay-later' );
default:
foreach ( $this->locations_map() as $old_location_name => $new_location_name ) {