mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix wrong user when creating wc card payment token
This commit is contained in:
parent
5d92a6e791
commit
fd9ca3c011
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ class RenewalHandler {
|
|||
foreach ( $customer_tokens as $customer_token ) {
|
||||
if ( $customer_token['payment_source']->name() === 'card' ) {
|
||||
$this->wc_payment_tokens->create_payment_token_card(
|
||||
get_current_user_id(),
|
||||
$user_id,
|
||||
(object) array(
|
||||
'id' => $customer_token['id'],
|
||||
'payment_source' => (object) array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue