mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix wrong payment method when getting wc payment tokens for card payment
This commit is contained in:
parent
16a8c9a313
commit
04be31b065
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ class RenewalHandler {
|
|||
$customer_tokens = array();
|
||||
}
|
||||
|
||||
$wc_tokens = WC_Payment_Tokens::get_customer_tokens( $user_id, PayPalGateway::ID );
|
||||
$wc_tokens = WC_Payment_Tokens::get_customer_tokens( $user_id, CreditCardGateway::ID );
|
||||
|
||||
if ( $customer_tokens && empty( $wc_tokens ) ) {
|
||||
foreach ( $customer_tokens as $customer_token ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue