I'm trying to fetch a Accept Hosted Payment Form token and I'm unable to get the token due to invalid authentication values. The API Token is correct. The transaction key is correct. I have created 3 new transaction keys from sandbox.authorize.net and they all fail in sandbox. I created another test account. That fails. I cannot understand why I cannot get a token. This process has not changed on my end. I am out of ideas.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<transactionRequest>
<transactionType>authCaptureTransaction</transactionType>
<amount>1.00</amount>
<order>
<invoiceNumber>404-1179325-197528</invoiceNumber>
<description>The Show 2023</description>
</order>
<customer/>
<billTo>
<country>US</country>
</billTo>
</transactionRequest>
<hostedPaymentSettings>
<setting>
<settingName>hostedPaymentBillingAddressOptions</settingName>
<settingValue>{ "show": false }</settingValue>
</setting>
<setting>
<settingName>hostedPaymentButtonOptions</settingName>
<settingValue>{ "text": "Pay" }</settingValue>
</setting>
<setting>
<settingName>hostedPaymentIFrameCommunicatorUrl</settingName>
<settingValue>{ "url": "https://local11.domain.local/jsp/hostedPayment/HostedPaymentResponseHandler.html" }</settingValue>
</setting>
<setting>
<settingName>hostedPaymentOrderOptions</settingName>
<settingValue>{ "show": false }</settingValue>
</setting>
<setting>
<settingName>hostedPaymentPaymentOptions</settingName>
<settingValue>{ "cardCodeRequired": true, "showBankAccount": false }</settingValue>
</setting>
<setting>
<settingName>hostedPaymentReturnOptions</settingName>
<settingValue>{ "showReceipt": false }</settingValue>
</setting>
</hostedPaymentSettings>
</getHostedPaymentPageRequest>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<getHostedPaymentPageResponse xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<messages>
<resultCode>Error</resultCode>
<message>
<code>E00007</code>
<text>User authentication failed due to invalid authentication values.</text>
</message>
</messages>
</getHostedPaymentPageResponse>
โ01-27-2022 11:25 AM
Note that this only affects the Accept Hosted Payment, it does not affect the non-hosted API.
Did we make previous versions of Accept Hosted unusable?
โ02-09-2022 02:06 PM