File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
app/code/Magento/Vault/Model/Method Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -543,13 +543,16 @@ private function getPaymentExtensionAttributes(OrderPaymentInterface $payment)
543
543
*/
544
544
private function attachCreditCardInfo (OrderPaymentInterface $ payment ): void
545
545
{
546
- $ paymentToken = $ payment ->getExtensionAttributes ()
547
- ->getVaultPaymentToken ();
548
- if ($ paymentToken ) {
549
- $ tokenDetails = $ this ->jsonSerializer ->unserialize ($ paymentToken ->getTokenDetails ());
550
- if ($ tokenDetails && is_array ($ tokenDetails )) {
551
- $ payment ->addData ($ tokenDetails );
546
+ try {
547
+ $ paymentToken = $ payment ->getExtensionAttributes ()
548
+ ->getVaultPaymentToken ();
549
+ if ($ paymentToken ) {
550
+ $ tokenDetails = $ this ->jsonSerializer ->unserialize ($ paymentToken ->getTokenDetails ());
551
+ if ($ tokenDetails && is_array ($ tokenDetails )) {
552
+ $ payment ->addData ($ tokenDetails );
553
+ }
552
554
}
555
+ } catch (Exception $ e ) {
553
556
}
554
557
}
555
558
You can’t perform that action at this time.
0 commit comments