@@ -14,14 +14,14 @@ public function setUp()
1414 public function testGenerateResponseFingerprint ()
1515 {
1616 $ this ->request ->initialize (array (
17- 'amount ' => '465.18 ' ,
17+ 'amount ' => '465.18 ' ,
1818 'transactionPassword ' => 'abc123 ' ,
1919 ));
2020
2121 $ data = array (
22- 'timestamp ' => '20130602102927 ' ,
23- 'merchant ' => 'ABC0030 ' ,
24- 'refid ' => '222 ' ,
22+ 'timestamp ' => '20130602102927 ' ,
23+ 'merchant ' => 'ABC0030 ' ,
24+ 'refid ' => '222 ' ,
2525 'summarycode ' => '2 ' ,
2626 );
2727
@@ -31,23 +31,23 @@ public function testGenerateResponseFingerprint()
3131 public function testSuccess ()
3232 {
3333 $ this ->request ->initialize (array (
34- 'amount ' => '355.00 ' ,
34+ 'amount ' => '355.00 ' ,
3535 'transactionPassword ' => 'abc123 ' ,
3636 ));
3737
3838 $ this ->getHttpRequest ()->query ->replace (array (
39- 'timestamp ' => '20130602112954 ' ,
39+ 'timestamp ' => '20130602112954 ' ,
4040 'callback_status_code ' => '' ,
41- 'fingerprint ' => 'd9b40fc6f841f41ef3475220fe6316406a5256ce ' ,
42- 'txnid ' => '205861 ' ,
43- 'merchant ' => 'ABC0030 ' ,
44- 'restext ' => 'Approved ' ,
45- 'rescode ' => '00 ' ,
46- 'expirydate ' => '032016 ' ,
47- 'settdate ' => '20130602 ' ,
48- 'refid ' => '226 ' ,
49- 'pan ' => '444433...111 ' ,
50- 'summarycode ' => '1 ' ,
41+ 'fingerprint ' => 'd9b40fc6f841f41ef3475220fe6316406a5256ce ' ,
42+ 'txnid ' => '205861 ' ,
43+ 'merchant ' => 'ABC0030 ' ,
44+ 'restext ' => 'Approved ' ,
45+ 'rescode ' => '00 ' ,
46+ 'expirydate ' => '032016 ' ,
47+ 'settdate ' => '20130602 ' ,
48+ 'refid ' => '226 ' ,
49+ 'pan ' => '444433...111 ' ,
50+ 'summarycode ' => '1 ' ,
5151 ));
5252
5353 $ response = $ this ->request ->send ();
@@ -64,23 +64,23 @@ public function testSuccess()
6464 public function testFailure ()
6565 {
6666 $ this ->request ->initialize (array (
67- 'amount ' => '465.18 ' ,
67+ 'amount ' => '465.18 ' ,
6868 'transactionPassword ' => 'abc123 ' ,
6969 ));
7070
7171 $ this ->getHttpRequest ()->query ->replace (array (
72- 'timestamp ' => '20130602102927 ' ,
72+ 'timestamp ' => '20130602102927 ' ,
7373 'callback_status_code ' => '' ,
74- 'fingerprint ' => '0516a31bf96ad89c354266afb9bd4be43aaf853f ' ,
75- 'txnid ' => '205833 ' ,
76- 'merchant ' => 'ABC0030 ' ,
77- 'restext ' => 'Customer Dispute ' ,
78- 'rescode ' => '18 ' ,
79- 'expirydate ' => '052016 ' ,
80- 'settdate ' => '20130602 ' ,
81- 'refid ' => '222 ' ,
82- 'pan ' => '444433...111 ' ,
83- 'summarycode ' => '2 ' ,
74+ 'fingerprint ' => '0516a31bf96ad89c354266afb9bd4be43aaf853f ' ,
75+ 'txnid ' => '205833 ' ,
76+ 'merchant ' => 'ABC0030 ' ,
77+ 'restext ' => 'Customer Dispute ' ,
78+ 'rescode ' => '18 ' ,
79+ 'expirydate ' => '052016 ' ,
80+ 'settdate ' => '20130602 ' ,
81+ 'refid ' => '222 ' ,
82+ 'pan ' => '444433...111 ' ,
83+ 'summarycode ' => '2 ' ,
8484 ));
8585
8686 $ response = $ this ->request ->send ();
@@ -93,4 +93,4 @@ public function testFailure()
9393 $ this ->assertSame ('Customer Dispute ' , $ response ->getMessage ());
9494 $ this ->assertSame ('18 ' , $ response ->getCode ());
9595 }
96- }
96+ }
0 commit comments