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
Solved! Go to Solution.
06-12-2018 05:19 PM
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 !
06-12-2018 08:23 PM - edited 06-12-2018 08:24 PM
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 !
06-12-2018 08:23 PM - edited 06-12-2018 08:24 PM