Add "Keep updated with PayPal" toggle in the old settings UI

This commit is contained in:
Himad M 2025-05-29 13:33:28 -04:00
parent b5ea07bcf0
commit 1df2efd6cd
No known key found for this signature in database
GPG key ID: 5FC769E9888A7B98

View file

@ -539,6 +539,20 @@ return function ( ContainerInterface $container, array $fields ): array {
'requirements' => array(),
'gateway' => Settings::CONNECTION_TAB_ID,
),
'keep_updated' => array(
'title' => __( 'Keep updated with PayPal', 'woocommerce-paypal-payments' ),
'type' => 'checkbox',
'desc_tip' => true,
'label' => __( 'Keep updated with PayPal. ', 'woocommerce-paypal-payments' ),
'description' => __( 'Receive updates on PayPal features, promotions, and news.', 'woocommerce-paypal-payments' ),
'default' => true,
'screens' => array(
State::STATE_START,
State::STATE_ONBOARDED,
),
'requirements' => array(),
'gateway' => Settings::CONNECTION_TAB_ID,
),
'subtotal_mismatch_behavior' => array(
'title' => __( 'Subtotal mismatch behavior', 'woocommerce-paypal-payments' ),
'type' => 'select',