From 3194edf9b9b2315280e194bdc45ed84b29f23cca Mon Sep 17 00:00:00 2001 From: RafaMelazzo Date: Wed, 19 Jul 2023 10:03:08 -0300 Subject: [PATCH] Refactoring creditCard.phtml template --- Block/Payment/Info/CreditCard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Block/Payment/Info/CreditCard.php b/Block/Payment/Info/CreditCard.php index 8f51e2e8..a4e2121c 100644 --- a/Block/Payment/Info/CreditCard.php +++ b/Block/Payment/Info/CreditCard.php @@ -107,7 +107,7 @@ public function getTransactionInfo() return []; } - $charge = $orderObject->getCharges()[0]; + $charge = current($orderObject->getCharges()); return array_merge( $charge->getAcquirerTidCapturedAndAutorize(),