changes to mimic google implementation

This commit is contained in:
carmenmaymo 2023-08-31 12:48:01 +02:00
parent 4797d53ad5
commit 63ab1e383d
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E
20 changed files with 724 additions and 216 deletions

View file

@ -27,7 +27,7 @@ return array(
'requirements' => array(),
'gateway' => 'paypal',
);
$fields['applepay_button_enabled_product'] = array(
$fields['applepay_button_enabled'] = array(
'title' => __( 'Apple Pay Button on Product Page', 'woocommerce-paypal-payments' ),
'type' => 'checkbox',
'label' => __( 'Enable Apple Pay button on product page', 'woocommerce-paypal-payments' ),
@ -36,15 +36,6 @@ return array(
'gateway' => 'paypal',
'requirements' => array(),
);
$fields['applepay_button_enabled_cart'] = array(
'title' => __( 'Apple Pay Button on Cart Page', 'woocommerce-paypal-payments' ),
'type' => 'checkbox',
'label' => __( 'Enable Apple Pay button on cart page', 'woocommerce-paypal-payments' ),
'default' => 'yes',
'screens' => array( State::STATE_ONBOARDED ),
'gateway' => 'paypal',
'requirements' => array(),
);
$fields['applepay_live_validation_file'] = array(
'title' => __( 'Apple Pay Live Validation File', 'woocommerce-paypal-payments' ),
'type' => 'textarea',
@ -64,8 +55,6 @@ return array(
'requirements' => array(),
);
return $fields;
},
);