mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
check if saved token data has id before creating Token
This commit is contained in:
parent
1588dc63bc
commit
a53e4d4187
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class PaymentTokenRepository
|
|||
{
|
||||
try {
|
||||
$token = (array) get_user_meta($id, self::USER_META, true);
|
||||
if (! $token) {
|
||||
if (! $token || ! isset($token['id'])) {
|
||||
return $this->fetchForUserId($id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue