Skip to content

Commit 8cca725

Browse files
committed
provided alternate credentials for tests failing with primary account
1 parent 2b97d53 commit 8cca725

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

tests/AuthorizeNetAIM_Test.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
class 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
}

0 commit comments

Comments
 (0)