add vault option, add logic for not rendering buttons when subscription but no vaulting enabled

This commit is contained in:
David Remer 2020-07-23 14:12:29 +03:00
parent e67a94f931
commit 158db47134
3 changed files with 130 additions and 49 deletions

View file

@ -465,6 +465,18 @@ return [
'dcc',
],
],
'vault_enabled' => [
'title' => __('Vaulting', 'woocommerce-paypal-commerce-gateway'),
'type' => 'checkbox',
'desc_tip' => true,
'label' => __('Enable vaulting', 'woocommerce-paypal-commerce-gateway'),
'description' => __('Enables you to store payment tokens for subscriptions', 'woocommerce-paypal-commerce-gateway'),
'default' => true,
'screens' => [
State::STATE_ONBOARDED,
],
'requirements' => [],
],
'logging_enabled' => [
'title' => __('Logging', 'woocommerce-paypal-commerce-gateway'),
'type' => 'checkbox',