@@ -10,7 +10,7 @@ public function testAuthCapture()
1010 array (
1111 'amount ' => rand (1 , 1000 ),
1212 'card_num ' => '4111111111111111 ' ,
13- 'exp_date ' => '0415 '
13+ 'exp_date ' => '0422 '
1414 )
1515 );
1616 $ response = $ sale ->authorizeAndCapture ();
@@ -24,7 +24,7 @@ public function testAuthCaptureSingleDigitMonth()
2424 array (
2525 'amount ' => rand (1 , 1000 ),
2626 'card_num ' => '4111111111111111 ' ,
27- 'exp_date ' => '415 '
27+ 'exp_date ' => '422 '
2828 )
2929 );
3030 $ response = $ sale ->authorizeAndCapture ();
@@ -38,7 +38,7 @@ public function testAuthCaptureSingleDigitMonthWithSlash()
3838 array (
3939 'amount ' => rand (1 , 1000 ),
4040 'card_num ' => '4111111111111111 ' ,
41- 'exp_date ' => '4/15 '
41+ 'exp_date ' => '4/22 '
4242 )
4343 );
4444 $ response = $ sale ->authorizeAndCapture ();
@@ -52,7 +52,7 @@ public function testAuthCaptureTwoDigitMonthWithSlash()
5252 array (
5353 'amount ' => rand (1 , 1000 ),
5454 'card_num ' => '4111111111111111 ' ,
55- 'exp_date ' => '04/15 '
55+ 'exp_date ' => '04/22 '
5656 )
5757 );
5858 $ response = $ sale ->authorizeAndCapture ();
@@ -64,15 +64,15 @@ public function testAuthCaptureAlternate()
6464 $ sale = new AuthorizeNetAIM ;
6565 $ sale ->amount = rand (1 , 10000 );
6666 $ sale ->card_num = '6011000000000012 ' ;
67- $ sale ->exp_date = '04/15 ' ;
67+ $ sale ->exp_date = '04/22 ' ;
6868 $ response = $ sale ->authorizeAndCapture ();
6969 $ this ->assertTrue ($ response ->approved );
7070 }
7171
7272 public function testAuthCaptureShort ()
7373 {
7474 $ sale = new AuthorizeNetAIM ;
75- $ response = $ sale ->authorizeAndCapture (rand (1 , 100 ), '6011000000000012 ' , '04/16 ' );
75+ $ response = $ sale ->authorizeAndCapture (rand (1 , 100 ), '6011000000000012 ' , '04/22 ' );
7676 $ this ->assertTrue ($ response ->approved );
7777 }
7878
@@ -85,7 +85,7 @@ public function testAuthCapturePartial()
8585 $ sale ->amount = $ amount ;
8686 $ sale ->card_num = '4222222222222 ' ;
8787 $ sale ->zip = "46225 " ;
88- $ sale ->exp_date = '04/15 ' ;
88+ $ sale ->exp_date = '04/22 ' ;
8989 $ sale ->allow_partial_auth = true ;
9090 $ response = $ sale ->authorizeAndCapture ();
9191 $ this ->assertTrue ($ response ->held );
@@ -97,7 +97,7 @@ public function testAuthCapturePartial()
9797 $ sale = new AuthorizeNetAIM ;
9898 $ sale ->amount = $ amount - $ response ->amount ;
9999 $ sale ->card_num = '6011000000000012 ' ;
100- $ sale ->exp_date = '04/20 ' ;
100+ $ sale ->exp_date = '04/22 ' ;
101101 $ sale ->split_tender_id = $ split_tender_id ;
102102 $ sale ->allow_partial_auth = true ;
103103 $ response = $ sale ->authorizeAndCapture ();
@@ -180,7 +180,7 @@ public function testAimResponseFields()
180180
181181 $ sale = new AuthorizeNetAIM ;
182182 $ sale ->card_num = '4111111111111111 ' ;
183- $ sale ->exp_date = '04/16 ' ;
183+ $ sale ->exp_date = '04/22 ' ;
184184 $ sale ->amount = $ amount = rand (1 ,99 );
185185 $ sale ->description = $ description = "Sale description " ;
186186 $ sale ->first_name = $ first_name = "Jane " ;
@@ -274,7 +274,7 @@ public function testVoid()
274274 array (
275275 'amount ' => $ amount ,
276276 'card_num ' => '6011000000000012 ' ,
277- 'exp_date ' => '0415 '
277+ 'exp_date ' => '0422 '
278278 )
279279 );
280280 $ response = $ sale ->authorizeAndCapture ();
@@ -297,7 +297,7 @@ public function testVoidShort()
297297 // First create transaction to void.
298298 $ amount = rand (1 , 1000 );
299299 $ card_num = '6011000000000012 ' ;
300- $ exp_date = '0415 ' ;
300+ $ exp_date = '0422 ' ;
301301 $ sale = new AuthorizeNetAIM ;
302302 $ response = $ sale ->authorizeAndCapture ($ amount , $ card_num , $ exp_date );
303303 $ this ->assertTrue ($ response ->approved );
@@ -332,21 +332,21 @@ public function testAuthCaptureECheckSandbox()
332332 public function testAmex ()
333333 {
334334 $ sale = new AuthorizeNetAIM ;
335- $ response = $ sale ->authorizeAndCapture (rand (1 , 100 ), '370000000000002 ' , '04/16 ' );
335+ $ response = $ sale ->authorizeAndCapture (rand (1 , 100 ), '370000000000002 ' , '04/22 ' );
336336 $ this ->assertTrue ($ response ->approved );
337337 }
338338
339339 public function testDiscover ()
340340 {
341341 $ sale = new AuthorizeNetAIM ;
342- $ response = $ sale ->authorizeAndCapture (rand (1 , 100 ), '6011000000000012 ' , '04/16 ' );
342+ $ response = $ sale ->authorizeAndCapture (rand (1 , 100 ), '6011000000000012 ' , '04/22 ' );
343343 $ this ->assertTrue ($ response ->approved );
344344 }
345345
346346 public function testVisa ()
347347 {
348348 $ sale = new AuthorizeNetAIM ;
349- $ response = $ sale ->authorizeAndCapture (rand (1 , 100 ), '4012888818888 ' , '04/16 ' );
349+ $ response = $ sale ->authorizeAndCapture (rand (1 , 100 ), '4012888818888 ' , '04/22 ' );
350350 $ this ->assertTrue ($ response ->approved );
351351 }
352352
@@ -373,7 +373,7 @@ public function testAuthOnly()
373373 array (
374374 'amount ' => rand (1 , 1000 ),
375375 'card_num ' => '6011000000000012 ' ,
376- 'exp_date ' => '0415 '
376+ 'exp_date ' => '0422 '
377377 )
378378 );
379379 $ response = $ auth ->authorizeOnly ();
@@ -388,7 +388,7 @@ public function testAuthCaptureVoid()
388388 array (
389389 'amount ' => $ amount ,
390390 'card_num ' => '6011000000000012 ' ,
391- 'exp_date ' => '0415 '
391+ 'exp_date ' => '0422 '
392392 )
393393 );
394394 $ auth_response = $ auth ->authorizeOnly ();
@@ -400,7 +400,7 @@ public function testAuthCaptureVoid()
400400 array (
401401 'amount ' => $ amount ,
402402 'card_num ' => '6011000000000012 ' ,
403- 'exp_date ' => '0415 ' ,
403+ 'exp_date ' => '0422 ' ,
404404 'trans_id ' => $ auth_response ->transaction_id ,
405405 )
406406 );
@@ -485,7 +485,7 @@ public function testAuthCaptureCustomFields()
485485 array (
486486 'amount ' => rand (1 , 1000 ),
487487 'card_num ' => '6011000000000012 ' ,
488- 'exp_date ' => '0415 '
488+ 'exp_date ' => '0422 '
489489 )
490490 );
491491 $ sale ->setCustomField ("foo " , "bar " );
@@ -510,7 +510,7 @@ public function testEncapCharacter()
510510 array (
511511 'amount ' => $ amount ,
512512 'card_num ' => '6011000000000012 ' ,
513- 'exp_date ' => '0415 ' ,
513+ 'exp_date ' => '0422 ' ,
514514 'encap_char ' => '$ ' ,
515515 'description ' => $ description ,
516516 )
@@ -528,7 +528,7 @@ public function testAuthCaptureSetMultipleCustomFields()
528528 array (
529529 'amount ' => rand (1 , 1000 ),
530530 'card_num ' => '6011000000000012 ' ,
531- 'exp_date ' => '0415 '
531+ 'exp_date ' => '0422 '
532532 )
533533 );
534534 $ sale ->setCustomFields (array ("foo " => "bar " , "foo2 " => "bar2 " ));
@@ -554,7 +554,7 @@ public function testInvalidCreditCard()
554554 array (
555555 'amount ' => rand (1 , 1000 ),
556556 'card_num ' => '123 ' ,
557- 'exp_date ' => '0415 '
557+ 'exp_date ' => '0422 '
558558 )
559559 );
560560 $ response = $ sale ->authorizeAndCapture ();
@@ -731,7 +731,7 @@ public function testResponseMethods()
731731 array (
732732 'amount ' => $ amount ,
733733 'card_num ' => '6011000000000012 ' ,
734- 'exp_date ' => '0415 ' ,
734+ 'exp_date ' => '0422 ' ,
735735 'zip ' => $ zipcode ,
736736 )
737737 );
@@ -760,7 +760,7 @@ public function testSetBadField()
760760 array (
761761 'amount ' => $ amount ,
762762 'card_num ' => '6011000000000012 ' ,
763- 'exp_date ' => '0415 ' ,
763+ 'exp_date ' => '0422 ' ,
764764 'zipcode ' => $ zipcode , // Should actually be just "zip"
765765 )
766766 );
@@ -840,7 +840,7 @@ public function testAuthCaptureLiveServerTestRequest()
840840 array (
841841 'amount ' => rand (1 , 1000 ),
842842 'card_num ' => '6011000000000012 ' ,
843- 'exp_date ' => '0415 '
843+ 'exp_date ' => '0422 '
844844 )
845845 );
846846 $ sale ->setField ('test_request ' , 'TRUE ' );
@@ -859,7 +859,7 @@ public function testAuthCaptureLiveServer()
859859 array (
860860 'amount ' => rand (1 , 1000 ),
861861 'card_num ' => '6011000000000012 ' ,
862- 'exp_date ' => '0415 '
862+ 'exp_date ' => '0422 '
863863 )
864864 );
865865 $ response = $ sale ->authorizeAndCapture ();
@@ -877,7 +877,7 @@ public function testInvalidCredentials()
877877 array (
878878 'amount ' => rand (1 , 1000 ),
879879 'card_num ' => '6011000000000012 ' ,
880- 'exp_date ' => '0415 '
880+ 'exp_date ' => '0422 '
881881 )
882882 );
883883 $ response = $ sale ->authorizeAndCapture ();
0 commit comments