Skip to content

Commit 7115216

Browse files
committed
Fixed tests, and a Bug
1 parent e0eac65 commit 7115216

5 files changed

+12
-1
lines changed

tests/Message/DirectPostAuthorizeRequestTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function setUp()
2121
'expiryMonth' => '6',
2222
'expiryYear' => '2030',
2323
'cvv' => '123',
24+
'billingPostcode' => '1234',
2425
],
2526
]
2627
);

tests/Message/DirectPostPurchaseRequestTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ public function setUp()
1919
'card' => [
2020
'number' => '4444333322221111',
2121
'expiryMonth' => '06',
22-
'expiryYear' => '2020',
22+
'expiryYear' => '2039',
2323
'cvv' => '123',
24+
'billingPostcode' => '1234',
2425
],
2526
]
2627
);

tests/Message/SecureXMLAuthorizeRequestTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function setUp()
2323
'expiryYear' => '2030',
2424
'cvv' => '123',
2525
'cardHolderName' => 'Sujip Thapa',
26+
'billingPostcode' => '1234',
2627
],
2728
]
2829
);

tests/Message/SecureXMLPurchaseRequestTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function setUp()
2323
'expiryYear' => '2030',
2424
'cvv' => '123',
2525
'cardHolderName' => 'Sujip Thapa',
26+
'billingPostcode' => '1234',
2627
],
2728
]
2829
);

tests/Message/UnionPayPurchaseRequestTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ public function setUp()
1717
'amount' => '12.00',
1818
'returnUrl' => 'https://www.example.com/return',
1919
'transactionId' => 'GHJGG76756556',
20+
'card' => [
21+
'number' => '4444333322221111',
22+
'expiryMonth' => '06',
23+
'expiryYear' => '2039',
24+
'cvv' => '123',
25+
'billingPostcode' => '1234',
26+
],
2027
]
2128
);
2229
}

0 commit comments

Comments
 (0)