Skip to content

Commit

Permalink
3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
braintreeps committed Sep 10, 2015
1 parent 2f6c4df commit 96e45a8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.5.0
* Add support for raw ApplePay params on Transaction create

## 3.4.0
* Add sourceDescription method to Android Pay and Apple Pay payment methods
* Add new Android Pay test nonces
Expand Down
1 change: 1 addition & 0 deletions lib/Braintree/TransactionGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public static function createSignature()
),
array('descriptor' => array('name', 'phone', 'url')),
array('paypalAccount' => array('payeeEmail')),
array('apple_pay_card' => array('number', 'cardholder_name', 'cryptogram', 'expiration_month', 'expiration_year')),
array('industry' =>
array('industryType',
array('data' =>
Expand Down
2 changes: 1 addition & 1 deletion lib/Braintree/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class Braintree_Version
* class constants
*/
const MAJOR = 3;
const MINOR = 4;
const MINOR = 5;
const TINY = 0;

/**
Expand Down
15 changes: 15 additions & 0 deletions tests/integration/TransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,21 @@ function testCreateTransactionUsingFakeApplePayNonce()
$this->assertNotNull($applePayDetails->cardholderName);
}

function testCreateTransactionUsingRawApplePayParams()
{
$result = Braintree_Transaction::sale(array(
'amount' => '1.02',
'apple_pay_card' => array(
'number' => "370295001292109",
'cardholder_name' => "JANE SMITH",
'cryptogram' => "AAAAAAAA/COBt84dnIEcwAA3gAAGhgEDoLABAAhAgAABAAAALnNCLw==",
'expiration_month' => "10",
'expiration_year' => "17"
)
));
$this->assertTrue($result->success);
}

function testCreateTransactionUsingFakeAndroidPayProxyCardNonce()
{
$result = Braintree_Transaction::sale(array(
Expand Down

0 comments on commit 96e45a8

Please sign in to comment.