Skip to content

Commit

Permalink
Merge pull request #27 from andypieters/andypieters-patch-1
Browse files Browse the repository at this point in the history
Added gender to the invoice address
  • Loading branch information
andypieters committed May 31, 2016
2 parents eedf666 + f3af41a commit ef02a96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ public static function start($options = array())
if (isset($options['invoiceAddress']['country'])) {
$invoiceAddress['countryCode'] = $options['invoiceAddress']['country'];
}
if (isset($options['invoiceAddress']['gender'])) {
$invoiceAddress['gender'] = $options['invoiceAddress']['gender'];
}

$enduser['invoiceAddress'] = $invoiceAddress;
}
Expand Down Expand Up @@ -255,4 +258,4 @@ public static function refund($transactionId, $amount = null,

return new Result\Refund($result);
}
}
}
1 change: 1 addition & 0 deletions tests/TransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ private function startTransactionFull()
'zipCode' => '5678CD',
'city' => 'ITest',
'country' => 'NL',
'gender' => 'F'
),
));
return $result;
Expand Down

0 comments on commit ef02a96

Please sign in to comment.