mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Add customer id when subscription mode is vaulting
This commit is contained in:
parent
ee425588bf
commit
9f59aa7e26
1 changed files with 1 additions and 0 deletions
|
@ -103,6 +103,7 @@ class IdentityToken {
|
|||
);
|
||||
if (
|
||||
( $this->settings->has( 'vault_enabled' ) && $this->settings->get( 'vault_enabled' ) )
|
||||
|| ( $this->settings->has( 'subscriptions_mode' ) && $this->settings->get( 'subscriptions_mode' ) === 'vaulting_api' )
|
||||
) {
|
||||
$customer_id = $this->customer_repository->customer_id_for_user( ( $user_id ) );
|
||||
update_user_meta( $user_id, 'ppcp_customer_id', $customer_id );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue