Reply
Contributor
Posts: 14
Registered: ‎07-04-2017
Accepted Solution

Unable to connect with production credentials

We have been trying to switch from a sandbox account to a actual merchant account and when we do the GetHostedPaymentPageResponse the response comes back as: 

 

RefId: 127
Token: null
Message Code: E00007
Message: User authentication failed due to invalid authentication values.

 

We have recreated the transaction key and validated the API login ID with no change to the results. 

 

The URL we are using for trying to connect is: 

https://secure.authorize.net/payment/payment

 

We also tried (per merchant support):

https://secure2.authorize.net/gateway/transact.dll

 

The code works perfectly for our sandbox account, but we have not been able to find or get from support any infomation on getting the production account to work. 

 

The code we are using to set the credentials is:

 

MerchantAuthenticationType merchantAuthenticationType = new MerchantAuthenticationType();
merchantAuthenticationType.setName(CAPCP_PMT_VENDOR_ID_1);
merchantAuthenticationType.setTransactionKey(CAPCP_PMT_VENDOR_ID_2);
ApiOperationBase.setMerchantAuthentication(merchantAuthenticationType);

 

We log out the credentials used in the calls and they are correct.

 

We have not been able to make any headway and the merchant support person could not assist in this issue, so does anyone have any ideas on what to try?  Is there any way to test the credentials thru some tool from authorize.net?

 

Thanks for any help,

Ed


Accepted Solutions
Highlighted
Solution
Accepted by topic author synconnv1
‎06-13-2018 06:28 AM
Authorize.Net Expert
Posts: 47
Registered: ‎07-27-2016

Re: Unable to connect with production credentials

[ Edited ]

Hi @synconnv1

 

You are trying to GetHostedPaymentPage, and its seems you are using our sample code to get that.

 

The endpoint for this api is in SANDBOX : https://apitest.authorize.net/xml/v1/request.api

and you need to change it to this for PRODUCTION : https://api.authorize.net/xml/v1/request.api

 

As you are using our sample code, it can be simply done by changing the Environment from SANDBOX to PRODUCTION like this:

 

ApiOperationBase.setEnvironment(Environment.PRODUCTION);

 

Hope this Helps !

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author synconnv1
‎06-13-2018 06:28 AM
Authorize.Net Expert
Posts: 47
Registered: ‎07-27-2016

Re: Unable to connect with production credentials

[ Edited ]

Hi @synconnv1

 

You are trying to GetHostedPaymentPage, and its seems you are using our sample code to get that.

 

The endpoint for this api is in SANDBOX : https://apitest.authorize.net/xml/v1/request.api

and you need to change it to this for PRODUCTION : https://api.authorize.net/xml/v1/request.api

 

As you are using our sample code, it can be simply done by changing the Environment from SANDBOX to PRODUCTION like this:

 

ApiOperationBase.setEnvironment(Environment.PRODUCTION);

 

Hope this Helps !