PCP-21 / add option for button label

This commit is contained in:
David Remer 2020-07-10 10:27:03 +03:00
parent 93d70249c7
commit 713d5bdda1
2 changed files with 22 additions and 1 deletions

View file

@ -249,6 +249,27 @@ return [
State::STATE_ONBOARDED,
],
],
'button_label' => [
'title' => __('Button Label', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'paypal',
'desc_tip' => true,
'description' => __(
'This controls the label on the primary button.',
'woocommerce-paypal-commerce-gateway'
),
'options' => [
'paypal' => __('PayPal', 'woocommerce-paypal-commerce-gateway'),
'checkout' => __('PayPal Checkout', 'woocommerce-paypal-commerce-gateway'),
'buynow' => __('PayPal Buy Now', 'woocommerce-paypal-commerce-gateway'),
'pay' => __('Pay with PayPal', 'woocommerce-paypal-commerce-gateway'),
],
'screens' => [
State::STATE_PROGRESSIVE,
State::STATE_ONBOARDED,
],
],
'button_color' => [
'title' => __('Color', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',