mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
🔀 Merge branch 'trunk'
This commit is contained in:
commit
b666df96a2
2 changed files with 15 additions and 5 deletions
|
@ -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' ),
|
||||
/**
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue