mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Merge pull request #2158 from woocommerce/PCP-2954-change-default-settings-for-new-store-configurations
Change some default settings for new store configurations (2954)
This commit is contained in:
commit
457ad27dcd
3 changed files with 4 additions and 4 deletions
|
@ -436,7 +436,7 @@ return function ( ContainerInterface $container, array $fields ): array {
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
'label' => $container->get( 'wcgateway.settings.fraudnet-label' ),
|
'label' => $container->get( 'wcgateway.settings.fraudnet-label' ),
|
||||||
'description' => __( 'FraudNet is a JavaScript library developed by PayPal and embedded into a merchant’s web page to collect browser-based data to help reduce fraud.', 'woocommerce-paypal-payments' ),
|
'description' => __( 'FraudNet is a JavaScript library developed by PayPal and embedded into a merchant’s web page to collect browser-based data to help reduce fraud.', 'woocommerce-paypal-payments' ),
|
||||||
'default' => false,
|
'default' => true,
|
||||||
'screens' => array(
|
'screens' => array(
|
||||||
State::STATE_ONBOARDED,
|
State::STATE_ONBOARDED,
|
||||||
),
|
),
|
||||||
|
@ -522,8 +522,8 @@ return function ( ContainerInterface $container, array $fields ): array {
|
||||||
'woocommerce-paypal-payments'
|
'woocommerce-paypal-payments'
|
||||||
),
|
),
|
||||||
'options' => array(
|
'options' => array(
|
||||||
PurchaseUnitSanitizer::MODE_DITCH => __( 'Do not send line items to PayPal', 'woocommerce-paypal-payments' ),
|
|
||||||
PurchaseUnitSanitizer::MODE_EXTRA_LINE => __( 'Add another line item', 'woocommerce-paypal-payments' ),
|
PurchaseUnitSanitizer::MODE_EXTRA_LINE => __( 'Add another line item', 'woocommerce-paypal-payments' ),
|
||||||
|
PurchaseUnitSanitizer::MODE_DITCH => __( 'Do not send line items to PayPal', 'woocommerce-paypal-payments' ),
|
||||||
),
|
),
|
||||||
'screens' => array(
|
'screens' => array(
|
||||||
State::STATE_START,
|
State::STATE_START,
|
||||||
|
|
|
@ -91,7 +91,7 @@ return function ( ContainerInterface $container, array $fields ): array {
|
||||||
'title' => __( 'Customize Smart Buttons Per Location', 'woocommerce-paypal-payments' ),
|
'title' => __( 'Customize Smart Buttons Per Location', 'woocommerce-paypal-payments' ),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => __( 'Customize smart button style per location', 'woocommerce-paypal-payments' ),
|
'label' => __( 'Customize smart button style per location', 'woocommerce-paypal-payments' ),
|
||||||
'default' => true,
|
'default' => false,
|
||||||
'screens' => array( State::STATE_START, State::STATE_ONBOARDED ),
|
'screens' => array( State::STATE_START, State::STATE_ONBOARDED ),
|
||||||
'requirements' => array(),
|
'requirements' => array(),
|
||||||
'gateway' => 'paypal',
|
'gateway' => 'paypal',
|
||||||
|
|
|
@ -142,7 +142,7 @@ class Settings implements ContainerInterface {
|
||||||
'woocommerce-paypal-payments'
|
'woocommerce-paypal-payments'
|
||||||
),
|
),
|
||||||
'smart_button_locations' => $this->default_button_locations,
|
'smart_button_locations' => $this->default_button_locations,
|
||||||
'smart_button_enable_styling_per_location' => true,
|
'smart_button_enable_styling_per_location' => false,
|
||||||
'pay_later_messaging_enabled' => true,
|
'pay_later_messaging_enabled' => true,
|
||||||
'pay_later_button_enabled' => true,
|
'pay_later_button_enabled' => true,
|
||||||
'pay_later_button_locations' => $this->default_pay_later_button_locations,
|
'pay_later_button_locations' => $this->default_pay_later_button_locations,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue