Reply
Contributor
Posts: 25
Registered: ‎05-20-2013

testing eChecks with aim

[ Edited ]

Hi all,


When I do a test echeck submit - I get back:

code 3
sub code 2
reason code 13
-
The merchant API Login ID is invalid or the account is inactive.

 

I am using the same login that works fine for credit cards...

 

Q: Why am I getting this and how do I fix it? Do I need to set something in my sandbox account?

 

 

 

require_once 'anet_php_sdk/AuthorizeNet.php';
$api_login_id = 'xxx';
$transaction_key = 'xxx';


$sale = new AuthorizeNetAIM;
$sale->amount = "2.00";
$sale->setECheck(
'121042882', // bank_aba_code
'123456789123', // bank_acct_num
'CHECKING', // bank_acct_type
'Bank of Earth', // bank_name
'Jane Doe', // bank_acct_name
'WEB' // echeck_type
);
$response = $sale->authorizeAndCapture();

 

 

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: testing eChecks with aim

There an example on

anet_php_sdk-1.1.8.zip\anet_php_sdk\README.html