mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
add vault option, add logic for not rendering buttons when subscription but no vaulting enabled
This commit is contained in:
parent
e67a94f931
commit
158db47134
3 changed files with 130 additions and 49 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue