We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ba8ef1 commit 871a812Copy full SHA for 871a812
app/code/Magento/Vault/Model/Method/Vault.php
@@ -544,8 +544,10 @@ private function attachCreditCardInfo(OrderPaymentInterface $payment): void
544
{
545
$paymentToken = $payment->getExtensionAttributes()
546
->getVaultPaymentToken();
547
- $tokenDetails = $this->jsonSerializer->unserialize($paymentToken->getTokenDetails());
548
- $payment->addData($tokenDetails);
+ if ($paymentToken) {
+ $tokenDetails = $this->jsonSerializer->unserialize($paymentToken->getTokenDetails());
549
+ $payment->addData($tokenDetails);
550
+ }
551
}
552
553
/**
0 commit comments