seperate title and description of the two gateways

This commit is contained in:
David Remer 2020-08-18 09:23:41 +03:00
parent b88c82eaf5
commit 473cc3108d
2 changed files with 42 additions and 5 deletions

View file

@ -258,6 +258,22 @@ return [
'requirements' => [],
'gateway' => 'paypal',
],
'dcc_gateway_title' => [
'title' => __('Title', 'woocommerce-paypal-commerce-gateway'),
'type' => 'text',
'description' => __(
'This controls the title which the user sees during checkout.',
'woocommerce-paypal-commerce-gateway'
),
'default' => __('PayPal', 'woocommerce-paypal-commerce-gateway'),
'desc_tip' => true,
'screens' => [
State::STATE_PROGRESSIVE,
State::STATE_ONBOARDED,
],
'requirements' => [],
'gateway' => 'dcc',
],
'description' => [
'title' => __('Description', 'woocommerce-paypal-commerce-gateway'),
'type' => 'text',
@ -277,6 +293,25 @@ return [
'requirements' => [],
'gateway' => 'paypal',
],
'dcc_gateway_description' => [
'title' => __('Description', 'woocommerce-paypal-commerce-gateway'),
'type' => 'text',
'desc_tip' => true,
'description' => __(
'This controls the description which the user sees during checkout.',
'woocommerce-paypal-commerce-gateway'
),
'default' => __(
'Pay via PayPal; you can pay with your credit card if you don\'t have a PayPal account.',
'woocommerce-paypal-commerce-gateway'
),
'screens' => [
State::STATE_PROGRESSIVE,
State::STATE_ONBOARDED,
],
'requirements' => [],
'gateway' => 'dcc',
],
'intent' => [
'title' => __('Intent', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',