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 871a812 commit f77ce35Copy full SHA for f77ce35
app/code/Magento/Vault/Model/Method/Vault.php
@@ -5,6 +5,7 @@
5
*/
6
namespace Magento\Vault\Model\Method;
7
8
+use Exception;
9
use Magento\Framework\Event\ManagerInterface;
10
use Magento\Framework\ObjectManagerInterface;
11
use Magento\Payment\Gateway\Command;
@@ -546,7 +547,9 @@ private function attachCreditCardInfo(OrderPaymentInterface $payment): void
546
547
->getVaultPaymentToken();
548
if ($paymentToken) {
549
$tokenDetails = $this->jsonSerializer->unserialize($paymentToken->getTokenDetails());
- $payment->addData($tokenDetails);
550
+ if ($tokenDetails && is_array($tokenDetails)) {
551
+ $payment->addData($tokenDetails);
552
+ }
553
}
554
555
0 commit comments