From aff524a8b9568349fbd698476d3ae89bfe8028ca Mon Sep 17 00:00:00 2001 From: woutse Date: Mon, 2 Aug 2021 09:38:38 +0200 Subject: [PATCH] shelvy --- samples/transaction/start.php | 3 ++- src/Transaction.php | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/samples/transaction/start.php b/samples/transaction/start.php index 0c633b8a..c442964e 100644 --- a/samples/transaction/start.php +++ b/samples/transaction/start.php @@ -103,7 +103,8 @@ 'houseNumberExtension' => 'A', 'zipCode' => '5678CD', 'city' => 'ITest', - 'country' => 'NL', + 'country' => 'CA', + 'regionCode' => 'CA-NL', ), 'object' => 'Object', // 64 characters max diff --git a/src/Transaction.php b/src/Transaction.php index 8d4aaf4e..864ed934 100644 --- a/src/Transaction.php +++ b/src/Transaction.php @@ -222,6 +222,9 @@ public static function start($options = array()) if (isset($options['invoiceAddress']['gender'])) { $invoiceAddress['gender'] = $options['invoiceAddress']['gender']; } + if (isset($options['invoiceAddress']['regionCode'])) { + $invoiceAddress['regionCode'] = $options['invoiceAddress']['regionCode']; + } $enduser['invoiceAddress'] = $invoiceAddress; }