mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix wrong user when creating wc card payment token
This commit is contained in:
parent
fd9ca3c011
commit
56a6c4ce32
2 changed files with 4 additions and 4 deletions
|
@ -223,7 +223,7 @@ class WooCommercePaymentTokens {
|
|||
|
||||
$token = new WC_Payment_Token_CC();
|
||||
$token->set_token( $payment_token->id );
|
||||
$token->set_user_id( get_current_user_id() );
|
||||
$token->set_user_id( $customer_id );
|
||||
$token->set_gateway_id( CreditCardGateway::ID );
|
||||
|
||||
$token->set_last4( $payment_token->payment_source->card->last_digits ?? '' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue