mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Do not save customer id in meta if vault v3 enabled
This commit is contained in:
parent
dd6293cf94
commit
6174ace832
1 changed files with 5 additions and 1 deletions
|
@ -54,7 +54,11 @@ class VaultingModule implements ModuleInterface {
|
|||
$subscription_helper = $container->get( 'wc-subscriptions.helper' );
|
||||
add_action(
|
||||
'woocommerce_created_customer',
|
||||
function( int $customer_id ) use ( $subscription_helper ) {
|
||||
function( int $customer_id ) use ( $subscription_helper, $container ) {
|
||||
if ( $container->has( 'save-payment-methods.eligible' ) && $container->get( 'save-payment-methods.eligible' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$session = WC()->session;
|
||||
if ( ! $session ) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue