diff --git a/samples/transaction/start.php b/samples/transaction/start.php index fad857ff..7effd5b5 100644 --- a/samples/transaction/start.php +++ b/samples/transaction/start.php @@ -100,6 +100,12 @@ 'city' => 'Test', 'country' => 'NL', ), + 'company' => array( + 'name' => 'CompanyName', + 'cocNumber' => '12345678', + 'vatNumber' => 'NL0123456789', + 'countryCode' => 'NL' + ), 'invoiceAddress' => array( 'initials' => 'IT', 'lastName' => 'ITEST', diff --git a/src/Transaction.php b/src/Transaction.php index 5a92ae52..d65269f6 100644 --- a/src/Transaction.php +++ b/src/Transaction.php @@ -139,6 +139,9 @@ public static function start($options = array()) } $enduser = $options['enduser']; } + if(isset($options['company'])){ + $enduser['company'] = $options['company']; + } if (isset($options['language'])) { $enduser['language'] = $options['language']; }