Skip to content

Commit 45cd9b5

Browse files
committed
Merge pull request #8 from 1ed/support-php-5.3
Add php-5.3 support
2 parents 2b8e9b0 + a753ce1 commit 45cd9b5

File tree

7 files changed

+51
-48
lines changed

7 files changed

+51
-48
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: php
22

33
php:
4+
- 5.3
45
- 5.4
56
- 5.5
67
- 5.6

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"require": {
3434
"omnipay/common": "~2.0",
35-
"braintree/braintree_php": "^3.1"
35+
"braintree/braintree_php": "^2.0"
3636
},
3737
"require-dev": {
3838
"omnipay/tests": "~2.0"

composer.lock

Lines changed: 37 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Message/AuthorizeRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function getData()
1515
{
1616
$this->validate('amount');
1717

18-
$data = [
18+
$data = array(
1919
'amount' => $this->getAmount(),
2020
'billingAddressId' => $this->getBillingAddressId(),
2121
'channel' => $this->getChannel(),
@@ -31,7 +31,7 @@ public function getData()
3131
'shippingAddressId' => $this->getShippingAddressId(),
3232
'taxAmount' => $this->getTaxAmount(),
3333
'taxExempt' => $this->getTaxExempt(),
34-
];
34+
);
3535

3636
// special validation
3737
if ($this->getPaymentMethodToken()) {

src/Message/ClientTokenRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ClientTokenRequest extends AbstractRequest
1212
{
1313
public function getData()
1414
{
15-
$data = [];
15+
$data = array();
1616
if ($customerId = $this->getCustomerId()) {
1717
$data['customerId'] = $customerId;
1818
}

tests/Message/AbstractRequestTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function provideKeepsData(){
3838
array('privateKey', 'abc123'),
3939
array('billingAddressId', 'abc123'),
4040
array('channel', 'abc123'),
41-
array('customFields', ['a' => 'b']),
41+
array('customFields', array('a' => 'b')),
4242
array('customerId', 'abc123'),
4343
array('descriptor', array('a' => 'b')),
4444
array('deviceData', 'abc123'),
@@ -129,7 +129,7 @@ public function testCardData()
129129

130130
public function testOptionData()
131131
{
132-
$options = [
132+
$options = array(
133133
'addBillingAddressToPaymentMethod' => false,
134134
'makeDefault' => true,
135135
'failOnDuplicatePaymentMethod' => true,
@@ -139,7 +139,7 @@ public function testOptionData()
139139
'storeShippingAddressInVault' => true,
140140
'verifyCard' => false,
141141
'verificationMerchantAccountId' => true,
142-
];
142+
);
143143
$this->request->initialize($options);
144144
$data = $this->request->getOptionData();
145145

tests/Message/AuthorizeRequestTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ public function setUp()
2323
'transactionId' => '684',
2424
'testMode' => false,
2525
'taxExempt' => false,
26-
'card' => [
26+
'card' => array(
2727
'firstName' => 'Kayla',
2828
'shippingCompany' => 'League',
29-
]
29+
)
3030
)
3131
);
3232
}
@@ -59,10 +59,10 @@ public function testPaymentMethodToken()
5959
'transactionId' => '684',
6060
'testMode' => false,
6161
'taxExempt' => false,
62-
'card' => [
62+
'card' => array(
6363
'firstName' => 'Kayla',
6464
'shippingCompany' => 'League',
65-
],
65+
),
6666
'paymentMethodToken' => 'fake-token-123'
6767
)
6868
);
@@ -80,10 +80,10 @@ public function testPaymentMethodNonce()
8080
'transactionId' => '684',
8181
'testMode' => false,
8282
'taxExempt' => false,
83-
'card' => [
83+
'card' => array(
8484
'firstName' => 'Kayla',
8585
'shippingCompany' => 'League',
86-
],
86+
),
8787
'paymentMethodNonce' => 'abc123'
8888
)
8989
);

0 commit comments

Comments
 (0)