From 0fc406513ad457a2c4b6a125d40ed6d93d212a8a Mon Sep 17 00:00:00 2001 From: Andy Pieters Date: Tue, 31 May 2016 17:23:14 +0200 Subject: [PATCH 1/2] Added gender to the invoice address --- src/Transaction.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +} From f3af41a22a599aa91ba02c218e8782fd9a09682f Mon Sep 17 00:00:00 2001 From: Andy Pieters Date: Tue, 31 May 2016 17:33:55 +0200 Subject: [PATCH 2/2] Added invoiceAddress gender to unittest --- tests/TransactionTest.php | 1 + 1 file changed, 1 insertion(+) 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;