🔀 Merge branch 'trunk'

This commit is contained in:
Philipp Stracker 2025-02-13 19:59:22 +01:00
commit b666df96a2
No known key found for this signature in database
2 changed files with 15 additions and 5 deletions

View file

@ -158,6 +158,12 @@ return array(
'sandbox_merchant_email' => 'merchant_email',
)
),
new SettingsMap(
$container->get( 'settings.data.settings' ),
array(
'disable_cards' => 'disabled_cards',
)
),
new SettingsMap(
$container->get( 'settings.data.styling' ),
/**

View file

@ -40,11 +40,12 @@ class StylingSettingsMapHelper {
public function map(): array {
$mapped_settings = array(
'smart_button_locations' => '',
'pay_later_button_locations' => '',
'disable_funding' => '',
'googlepay_button_enabled' => '',
'applepay_button_enabled' => '',
'smart_button_locations' => '',
'pay_later_button_locations' => '',
'disable_funding' => '',
'googlepay_button_enabled' => '',
'applepay_button_enabled' => '',
'smart_button_enable_styling_per_location' => '',
);
foreach ( $this->locations_map() as $old_location_name => $new_location_name ) {
@ -70,6 +71,9 @@ class StylingSettingsMapHelper {
case 'smart_button_locations':
return $this->mapped_smart_button_locations_value( $styling_models );
case 'smart_button_enable_styling_per_location':
return true;
case 'pay_later_button_locations':
return $this->mapped_pay_later_button_locations_value( $styling_models );