Skip to content

Commit

Permalink
Added Company data to transaction start
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Pieters committed May 29, 2017
1 parent 70a9648 commit 1af0d8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions samples/transaction/start.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@
'city' => 'Test',
'country' => 'NL',
),
'company' => array(
'name' => 'CompanyName',
'cocNumber' => '12345678',
'vatNumber' => 'NL0123456789',
'countryCode' => 'NL'
),
'invoiceAddress' => array(
'initials' => 'IT',
'lastName' => 'ITEST',
Expand Down
3 changes: 3 additions & 0 deletions src/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down

0 comments on commit 1af0d8c

Please sign in to comment.