Skip to content

Commit 47e0e59

Browse files
authored
Merge pull request #205 from paynl/feature/PLUG-5386
PLUG-5386 - Housenumber fix
2 parents fcdcf9c + 65669f0 commit 47e0e59

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

includes/classes/PPMFWC/Helper/Config.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ public static function getInvoiceAddress($order)
8282
$aBillingAddress = paynl_split_address($billingAddress);
8383

8484
$_billing_house_number = $order->get_meta('_billing_house_number');
85-
if (empty($aBillingAddress[1]) && !empty($_billing_house_number)) {
86-
$billingAddress = $order->get_billing_address_1() . ' ' . $_billing_house_number . $order->get_billing_address_2();
85+
if (empty($aBillingAddress['number']) && !empty($_billing_house_number)) {
86+
$billingAddress = $order->get_billing_address_1() . ' ' . $_billing_house_number . ' ' . $order->get_billing_address_2();
8787
$aBillingAddress = paynl_split_address($billingAddress);
8888
}
8989

@@ -106,8 +106,8 @@ public static function getDeliveryAddress($order): \PayNL\Sdk\Model\Address
106106
$aShippingAddress = paynl_split_address($shippingAddress);
107107

108108
$_shipping_house_number = $order->get_meta('_shipping_house_number');
109-
if (empty($aShippingAddress[1]) && !empty($_shipping_house_number)) {
110-
$shippingAddress = $order->get_shipping_address_1() . ' ' . $_shipping_house_number . $order->get_shipping_address_2();
109+
if (empty($aShippingAddress['number']) && !empty($_shipping_house_number)) {
110+
$shippingAddress = $order->get_shipping_address_1() . ' ' . $_shipping_house_number . ' ' . $order->get_shipping_address_2();
111111
$aShippingAddress = paynl_split_address($shippingAddress);
112112
}
113113

0 commit comments

Comments
 (0)