@@ -14,14 +14,14 @@ public function setUp()
1414 public function testGenerateResponseFingerprint ()
1515 {
1616 $ this ->request ->initialize ([
17- 'amount ' => '465.18 ' ,
17+ 'amount ' => '465.18 ' ,
1818 'transactionPassword ' => 'abcd1234 ' ,
1919 ]);
2020
2121 $ data = [
22- 'timestamp ' => '20190215173250 ' ,
23- 'merchant ' => 'XYZ0010 ' ,
24- 'refid ' => '222 ' ,
22+ 'timestamp ' => '20190215173250 ' ,
23+ 'merchant ' => 'XYZ0010 ' ,
24+ 'refid ' => '222 ' ,
2525 'summarycode ' => '2 ' ,
2626 ];
2727
@@ -34,24 +34,24 @@ public function testGenerateResponseFingerprint()
3434 public function testSuccess ()
3535 {
3636 $ this ->request ->initialize ([
37- 'amount ' => '12.00 ' ,
37+ 'amount ' => '12.00 ' ,
3838 'transactionPassword ' => 'abcd1234 ' ,
39- 'transactionId ' => 'ORDER-ZYX8 ' ,
39+ 'transactionId ' => 'ORDER-ZYX8 ' ,
4040 ]);
4141
4242 $ this ->getHttpRequest ()->query ->replace ([
43- 'timestamp ' => '20190215173250 ' ,
43+ 'timestamp ' => '20190215173250 ' ,
4444 'callback_status_code ' => '-1 ' ,
45- 'fingerprint ' => 'd319e8852e94972f8ef3f330884a0f5db85c6341fd367d6823a99e9b93d917c0 ' ,
46- 'txnid ' => '271337 ' ,
47- 'merchant ' => 'XYZ0010 ' ,
48- 'restext ' => 'Approved ' ,
49- 'rescode ' => '00 ' ,
50- 'expirydate ' => '20190215 ' ,
51- 'settdate ' => '20190215 ' ,
52- 'refid ' => 'ORDER-ZYX8 ' ,
53- 'pan ' => '444433...111 ' ,
54- 'summarycode ' => '1 ' ,
45+ 'fingerprint ' => 'd319e8852e94972f8ef3f330884a0f5db85c6341fd367d6823a99e9b93d917c0 ' ,
46+ 'txnid ' => '271337 ' ,
47+ 'merchant ' => 'XYZ0010 ' ,
48+ 'restext ' => 'Approved ' ,
49+ 'rescode ' => '00 ' ,
50+ 'expirydate ' => '20190215 ' ,
51+ 'settdate ' => '20190215 ' ,
52+ 'refid ' => 'ORDER-ZYX8 ' ,
53+ 'pan ' => '444433...111 ' ,
54+ 'summarycode ' => '1 ' ,
5555 ]);
5656
5757 $ response = $ this ->request ->send ();
@@ -68,23 +68,23 @@ public function testSuccess()
6868 public function testFailure ()
6969 {
7070 $ this ->request ->initialize ([
71- 'amount ' => '465.18 ' ,
71+ 'amount ' => '465.18 ' ,
7272 'transactionPassword ' => 'abcd1234 ' ,
7373 ]);
7474
7575 $ this ->getHttpRequest ()->query ->replace ([
76- 'timestamp ' => '20190215173250 ' ,
76+ 'timestamp ' => '20190215173250 ' ,
7777 'callback_status_code ' => '404 ' ,
78- 'fingerprint ' => 'af490d2635a7ebe8e97313fbea61924a51f4b4d095e2cf7a2a81f8fc3f5ca919 ' ,
79- 'txnid ' => '274279 ' ,
80- 'merchant ' => 'XYZ0010 ' ,
81- 'restext ' => 'Customer Dispute ' ,
82- 'rescode ' => '18 ' ,
83- 'expirydate ' => '102030 ' ,
84- 'settdate ' => '20190215 ' ,
85- 'refid ' => 'ORDER-ZYX8 ' ,
86- 'pan ' => '444433...111 ' ,
87- 'summarycode ' => '2 ' ,
78+ 'fingerprint ' => 'af490d2635a7ebe8e97313fbea61924a51f4b4d095e2cf7a2a81f8fc3f5ca919 ' ,
79+ 'txnid ' => '274279 ' ,
80+ 'merchant ' => 'XYZ0010 ' ,
81+ 'restext ' => 'Customer Dispute ' ,
82+ 'rescode ' => '18 ' ,
83+ 'expirydate ' => '102030 ' ,
84+ 'settdate ' => '20190215 ' ,
85+ 'refid ' => 'ORDER-ZYX8 ' ,
86+ 'pan ' => '444433...111 ' ,
87+ 'summarycode ' => '2 ' ,
8888 ]);
8989
9090 $ response = $ this ->request ->send ();
0 commit comments