@@ -22,10 +22,10 @@ public function testAuthorizeSuccess()
2222 $ this ->assertTrue ($ response ->isSuccessful ());
2323 $ this ->assertSame ('2184493132 ' , $ response ->getTransactionReference ());
2424 $ this ->assertSame ('This transaction has been approved. ' , $ response ->getMessage ());
25- $ this ->assertSame ('1 ' , $ response ->getCode ());
25+ $ this ->assertSame ('Approved ' , $ response ->getCode ());
2626 $ this ->assertSame ('1 ' , $ response ->getReasonCode ());
2727 $ this ->assertSame ('GA4OQP ' , $ response ->getAuthorizationCode ());
28- $ this ->assertSame ('Y ' , $ response ->getAVSCode ());
28+ $ this ->assertSame ('Address (Street) and five digit ZIP match ' , $ response ->getAVSCode ());
2929 }
3030
3131 public function testAuthorizeFailure ()
@@ -36,10 +36,10 @@ public function testAuthorizeFailure()
3636 $ this ->assertFalse ($ response ->isSuccessful ());
3737 $ this ->assertSame ('0 ' , $ response ->getTransactionReference ());
3838 $ this ->assertSame ('A valid amount is required. ' , $ response ->getMessage ());
39- $ this ->assertSame ('3 ' , $ response ->getCode ());
39+ $ this ->assertSame ('Error ' , $ response ->getCode ());
4040 $ this ->assertSame ('5 ' , $ response ->getReasonCode ());
4141 $ this ->assertSame ('' , $ response ->getAuthorizationCode ());
42- $ this ->assertSame ('P ' , $ response ->getAVSCode ());
42+ $ this ->assertSame ('AVS not applicable for this transaction ' , $ response ->getAVSCode ());
4343 }
4444
4545 public function testCaptureSuccess ()
@@ -50,10 +50,10 @@ public function testCaptureSuccess()
5050 $ this ->assertTrue ($ response ->isSuccessful ());
5151 $ this ->assertSame ('2184494531 ' , $ response ->getTransactionReference ());
5252 $ this ->assertSame ('This transaction has been approved. ' , $ response ->getMessage ());
53- $ this ->assertSame ('1 ' , $ response ->getCode ());
53+ $ this ->assertSame ('Approved ' , $ response ->getCode ());
5454 $ this ->assertSame ('1 ' , $ response ->getReasonCode ());
5555 $ this ->assertSame ('F51OYG ' , $ response ->getAuthorizationCode ());
56- $ this ->assertSame ('P ' , $ response ->getAVSCode ());
56+ $ this ->assertSame ('AVS not applicable for this transaction ' , $ response ->getAVSCode ());
5757 }
5858
5959 public function testCaptureFailure ()
@@ -64,10 +64,10 @@ public function testCaptureFailure()
6464 $ this ->assertFalse ($ response ->isSuccessful ());
6565 $ this ->assertSame ('0 ' , $ response ->getTransactionReference ());
6666 $ this ->assertSame ('The transaction cannot be found. ' , $ response ->getMessage ());
67- $ this ->assertSame ('3 ' , $ response ->getCode ());
67+ $ this ->assertSame ('Error ' , $ response ->getCode ());
6868 $ this ->assertSame ('16 ' , $ response ->getReasonCode ());
6969 $ this ->assertSame ('' , $ response ->getAuthorizationCode ());
70- $ this ->assertSame ('P ' , $ response ->getAVSCode ());
70+ $ this ->assertSame ('AVS not applicable for this transaction ' , $ response ->getAVSCode ());
7171 }
7272
7373 public function testPurchaseSuccess ()
@@ -78,10 +78,10 @@ public function testPurchaseSuccess()
7878 $ this ->assertTrue ($ response ->isSuccessful ());
7979 $ this ->assertSame ('2184492509 ' , $ response ->getTransactionReference ());
8080 $ this ->assertSame ('This transaction has been approved. ' , $ response ->getMessage ());
81- $ this ->assertSame ('1 ' , $ response ->getCode ());
81+ $ this ->assertSame ('Approved ' , $ response ->getCode ());
8282 $ this ->assertSame ('1 ' , $ response ->getReasonCode ());
8383 $ this ->assertSame ('JE6JM1 ' , $ response ->getAuthorizationCode ());
84- $ this ->assertSame ('Y ' , $ response ->getAVSCode ());
84+ $ this ->assertSame ('Address (Street) and five digit ZIP match ' , $ response ->getAVSCode ());
8585 }
8686
8787 public function testPurchaseFailure ()
@@ -92,9 +92,9 @@ public function testPurchaseFailure()
9292 $ this ->assertFalse ($ response ->isSuccessful ());
9393 $ this ->assertSame ('0 ' , $ response ->getTransactionReference ());
9494 $ this ->assertSame ('A valid amount is required. ' , $ response ->getMessage ());
95- $ this ->assertSame ('3 ' , $ response ->getCode ());
95+ $ this ->assertSame ('Error ' , $ response ->getCode ());
9696 $ this ->assertSame ('5 ' , $ response ->getReasonCode ());
9797 $ this ->assertSame ('' , $ response ->getAuthorizationCode ());
98- $ this ->assertSame ('P ' , $ response ->getAVSCode ());
98+ $ this ->assertSame ('AVS not applicable for this transaction ' , $ response ->getAVSCode ());
9999 }
100100}
0 commit comments