mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
hide vaulting behind flag
This commit is contained in:
parent
6fd8cbb7b3
commit
05be224b65
3 changed files with 7 additions and 3 deletions
|
@ -151,7 +151,7 @@ return [
|
|||
'save',
|
||||
'reset'
|
||||
);
|
||||
return [
|
||||
$fields = [
|
||||
'ppcp_onboarding' => [
|
||||
'title' => __('Connect to PayPal', 'woocommerce-paypal-commerce-gateway'),
|
||||
'type' => 'ppcp_onboarding',
|
||||
|
@ -1476,6 +1476,10 @@ return [
|
|||
'gateway' => 'dcc',
|
||||
],
|
||||
];
|
||||
if (! defined('PPCP_FLAG_SUBSCRIPTION') || ! PPCP_FLAG_SUBSCRIPTION) {
|
||||
unset($fields['vault_enabled']);
|
||||
}
|
||||
return $fields;
|
||||
},
|
||||
|
||||
'wcgateway.checkout.address-preset' => static function(ContainerInterface $container): CheckoutPayPalAddressPreset {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue