File tree Expand file tree Collapse file tree
includes/classes/PPMFWC/Helper Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments