From 8592121e1c4bdd1b97450b1e7cd6d582d421e193 Mon Sep 17 00:00:00 2001 From: Dennis van Schaik Date: Mon, 29 Jul 2024 11:31:29 +0200 Subject: [PATCH] fix missing invoice city bug Fix wrong array name $shippingAddress to fix bug that invoice city is not being send to the API. --- Model/PayPaymentCreate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/PayPaymentCreate.php b/Model/PayPaymentCreate.php index 0126b562..43b7d4dd 100644 --- a/Model/PayPaymentCreate.php +++ b/Model/PayPaymentCreate.php @@ -410,7 +410,7 @@ private function getInvoiceAddress() $invoiceAddress['streetName'] = mb_substr($arrAddress[0] ?? '', 0, 128); $invoiceAddress['houseNumber'] = mb_substr($arrAddress[1] ?? '', 0, 10); $invoiceAddress['zipCode'] = mb_substr($arrBillingAddress['postcode'] ?? '', 0, 24); - $shippingAddress['city'] = mb_substr($arrBillingAddress['city'] ?? '', 0, 40); + $invoiceAddress['city'] = mb_substr($arrBillingAddress['city'] ?? '', 0, 40); $invoiceAddress['country'] = $arrBillingAddress['country_id']; }