File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33class AuthorizeNetAIM_Sandbox_Test extends PHPUnit_Framework_TestCase
44{
5+ private $ alternateApiLoginId = "22Pav9kBpn " ;
6+ private $ alternateTransactionKey = "35vB2T6kkZZW582q " ;
57
68 public function testAuthCapture ()
79 {
@@ -438,12 +440,12 @@ public function testAuthCaptureVoid()
438440
439441 public function testAdvancedAIM ()
440442 {
441- $ auth = new AuthorizeNetAIM ;
442- $ auth ->amount = "45 .00 " ;
443+ $ auth = new AuthorizeNetAIM ( $ this -> alternateApiLoginId , $ this -> alternateTransactionKey ) ;
444+ $ auth ->amount = "50 .00 " ;
443445
444446 // Use eCheck:
445447 $ auth ->setECheck (
446- '121042882 ' ,
448+ '125000024 ' ,
447449 '123456789123 ' ,
448450 'CHECKING ' ,
449451 'Bank of Earth ' ,
@@ -468,12 +470,13 @@ public function testAdvancedAIM()
468470 $ auth_code = $ response ->transaction_id ;
469471
470472 // Now capture:
471- $ capture = new AuthorizeNetAIM ;
473+ $ capture = new AuthorizeNetAIM ( " 22Pav9kBpn " , " 35vB2T6kkZZW582q " ) ;
472474 $ capture_response = $ capture ->priorAuthCapture ($ auth_code );
475+ print_r ($ capture_response );
473476 $ this ->assertTrue ($ capture_response ->approved );
474477
475478 // Now void:
476- $ void = new AuthorizeNetAIM ;
479+ $ void = new AuthorizeNetAIM ( " 22Pav9kBpn " , " 35vB2T6kkZZW582q " ) ;
477480 $ void_response = $ void ->void ($ capture_response ->transaction_id );
478481 $ this ->assertTrue ($ void_response ->approved );
479482 }
You can’t perform that action at this time.
0 commit comments