diff --git a/src/Transaction.php b/src/Transaction.php index a8c37bab..a0984334 100644 --- a/src/Transaction.php +++ b/src/Transaction.php @@ -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; } @@ -255,4 +258,4 @@ public static function refund($transactionId, $amount = null, return new Result\Refund($result); } -} \ No newline at end of file +} diff --git a/tests/TransactionTest.php b/tests/TransactionTest.php index a229c231..3c641228 100755 --- a/tests/TransactionTest.php +++ b/tests/TransactionTest.php @@ -85,6 +85,7 @@ private function startTransactionFull() 'zipCode' => '5678CD', 'city' => 'ITest', 'country' => 'NL', + 'gender' => 'F' ), )); return $result;