-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from swarming/master
Add unique ID to transactions
- Loading branch information
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,7 @@ public function testGetFormData() | |
TransactionInterface::CREDITCARD_MONTH => '04', | ||
TransactionInterface::CREDITCARD_YEAR => '2019', | ||
TransactionInterface::BILLING_ADDRESS => '123', | ||
TransactionInterface::UNIQUE_ID => '123456789', | ||
TransactionInterface::REF_PAYMENT_PROFILE_ID => '414', | ||
TransactionInterface::REF_TRANSACTION_ID => '2323', | ||
TransactionInterface::REF_GATEWAY_ID => '525', | ||
|
@@ -178,6 +179,7 @@ public function testGetFormData() | |
TransactionInterface::EMAIL => '[email protected]', | ||
TransactionInterface::ORDER_ID => '123', | ||
TransactionInterface::IP => '0.0.0.0', | ||
TransactionInterface::UNIQUE_ID => '123456789' | ||
]; | ||
|
||
$this->transaction->importData($data); | ||
|
@@ -198,6 +200,7 @@ public function testGetVerifyFormData() | |
TransactionInterface::CREDITCARD_MONTH => '04', | ||
TransactionInterface::CREDITCARD_YEAR => '2019', | ||
TransactionInterface::BILLING_ADDRESS => '123', | ||
TransactionInterface::UNIQUE_ID => '987654321', | ||
TransactionInterface::REF_PAYMENT_PROFILE_ID => '414', | ||
TransactionInterface::REF_TRANSACTION_ID => '2323', | ||
TransactionInterface::REF_GATEWAY_ID => '525', | ||
|
@@ -225,7 +228,7 @@ public function testGetVerifyFormData() | |
TransactionInterface::CURRENCY_CODE => 'currency code', | ||
TransactionInterface::EMAIL => '[email protected]', | ||
TransactionInterface::ORDER_ID => '123', | ||
TransactionInterface::IP => '0.0.0.0', | ||
TransactionInterface::IP => '0.0.0.0' | ||
]; | ||
|
||
$this->transaction->importData($data); | ||
|
@@ -246,6 +249,7 @@ public function testGetServiceFormData() | |
TransactionInterface::CREDITCARD_MONTH => '04', | ||
TransactionInterface::CREDITCARD_YEAR => '2019', | ||
TransactionInterface::BILLING_ADDRESS => '123', | ||
TransactionInterface::UNIQUE_ID => '918273645', | ||
TransactionInterface::REF_PAYMENT_PROFILE_ID => '414', | ||
TransactionInterface::REF_TRANSACTION_ID => '2323', | ||
TransactionInterface::REF_GATEWAY_ID => '525', | ||
|
@@ -297,6 +301,7 @@ public function testGetTokenFormData($address, $expectedData) | |
TransactionInterface::CREDITCARD_MONTH => '04', | ||
TransactionInterface::CREDITCARD_YEAR => '2019', | ||
TransactionInterface::BILLING_ADDRESS => '123', | ||
TransactionInterface::UNIQUE_ID => '129834765', | ||
TransactionInterface::REF_PAYMENT_PROFILE_ID => '414', | ||
TransactionInterface::REF_TRANSACTION_ID => '2323', | ||
TransactionInterface::REF_GATEWAY_ID => '525', | ||
|
@@ -338,6 +343,7 @@ public function getTokenFormDataTest() | |
TransactionInterface::IP => '0.0.0.0', | ||
TransactionInterface::CREDITCARD_MONTH => '04', | ||
TransactionInterface::CREDITCARD_YEAR => '2019', | ||
TransactionInterface::UNIQUE_ID => '129834765' | ||
] | ||
], | ||
'With address' => [ | ||
|
@@ -364,6 +370,7 @@ public function getTokenFormDataTest() | |
TransactionInterface::IP => '0.0.0.0', | ||
TransactionInterface::CREDITCARD_MONTH => '04', | ||
TransactionInterface::CREDITCARD_YEAR => '2019', | ||
TransactionInterface::UNIQUE_ID => '129834765', | ||
TransactionInterface::BILLING_ADDRESS => [ | ||
AddressInterface::CITY => 'city', | ||
AddressInterface::COUNTRY => 'country', | ||
|