Add setting field for intent

This commit is contained in:
Mészáros Róbert 2020-04-13 11:23:55 +03:00
parent f67bac7c43
commit 07bda403e3

View file

@ -47,6 +47,21 @@ class SettingsFields
'woocommerce-paypal-gateway'
),
],
'intent' => [
'title' => __('Intent', 'woocommerce-paypal-gateway'),
'type' => 'select',
'class' => 'wc-enhanced-select',
'default' => 'capture',
'desc_tip' => true,
'description' => __(
'The intent to either capture payment immediately or authorize a payment for an order after order creation.',
'woocommerce-paypal-gateway'
),
'options' => [
'capture' => __('Capture', 'woocommerce-paypal-gateway'),
'authorize' => __('Authorize', 'woocommerce-paypal-gateway'),
],
],
];
}