From 0b6603288f88ff8ad337f333a276c97b4f559ab0 Mon Sep 17 00:00:00 2001 From: mohit-dexbytes <53266421+mohit-dexbytes@users.noreply.github.com> Date: Wed, 28 Jul 2021 19:03:33 +0530 Subject: [PATCH] Line item total key issue resolved Level 3 portico is throwing error 500 for commercialData->lineItems > *LineItemTotalAmt* As mentioned in the below doc the *LineItemTotalAmt* key should be *ItemTotalAmt* --- src/Gateways/PorticoConnector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gateways/PorticoConnector.php b/src/Gateways/PorticoConnector.php index 178a334b..5bec9c4a 100644 --- a/src/Gateways/PorticoConnector.php +++ b/src/Gateways/PorticoConnector.php @@ -777,7 +777,7 @@ public function manageTransaction(ManagementBuilder $builder) } if (!empty($lineItem->totalAmount)) { - $linetItemNode->appendChild($xml->createElement('LineItemTotalAmt', $lineItem->totalAmount)); + $linetItemNode->appendChild($xml->createElement('ItemTotalAmt', $lineItem->totalAmount)); } // if (!empty($lineItem->somethingsome)) {