cancel
Showing results for 
Search instead for 
Did you mean: 

C# SDK The merchant login ID or password is invalid or the account is inactive. on live account

Hello,

 

I am having an issue with the C# SDK.  Everything works fine when using my developer account, however when i switch the apilogin and transkey to a live account: I get:

 

The merchant login ID or password is invalid or the account is inactive.

 

Of course, if i do a simple URL to test the account works fine.

 

https://secure.authorize.net/gateway/transact.dll?x_version=3.1&x_type=AUTH_ONLY&x_amount=1.99&x_car...

 

Is there something in the SDK that is sending everything to a test server or sandbox?  Do i have to change the transact url?

klack
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

Ok found the problem

 

var gate = new CardPresentGateway(apilogin, transkey, false);

 

needs to be 

 

var gate = new CardPresentGateway(apilogin, transkey, true);

for a live server

View solution in original post

klack
Contributor
2 REPLIES 2

Ok found the problem

 

var gate = new CardPresentGateway(apilogin, transkey, false);

 

needs to be 

 

var gate = new CardPresentGateway(apilogin, transkey, true);

for a live server

klack
Contributor

This is how it should be for a test account using the John Conde variables:

 

    public function __construct($login = '', $transkey = '', $test = true)
    {
        $login    = trim($login);
        $transkey = trim($transkey);
        if (empty($login) || empty($transkey))