Skip to content

Commit

Permalink
Merge pull request #141 from paynl/feature/PLUG-542
Browse files Browse the repository at this point in the history
Adding support for regioncode parameter
  • Loading branch information
woutse authored Aug 3, 2021
2 parents 6e4da83 + aff524a commit 3a451d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/transaction/start.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
'houseNumberExtension' => 'A',
'zipCode' => '5678CD',
'city' => 'ITest',
'country' => 'NL',
'country' => 'CA',
'regionCode' => 'CA-NL',
),
'object' => 'Object', // 64 characters max

Expand Down
3 changes: 3 additions & 0 deletions src/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3a451d0

Please sign in to comment.