When I run my code for gethostedpaymentpage from my development machine, everything is working fine. When I deploy my code onto my webserver, the hosted payment page does not look right at all. There is no error given (e.g. unable to obtain token). The fields such as Description and Invoice Number have the values {{orderDescription}} and {{orderInvoiceNumber}} instead of displaying the correct values. There are no textboxes shown to enter in values, there is a field {{errorMsg}} in red, and buttons stretch across the whole page and do not display their text just parameter names with {}. Everything is jumbled and not formatted correctly.
What could be the problem? It is the exact same code used in both places. Webserver is running TLS 1.2. Using same ID and transaction key.
Thank you.
Solved! Go to Solution.
โ09-15-2017 09:35 AM
Make sure your form is posting to https://test.authorize.net/payment/payment instead of https://test.authorize.net/payment/payment/
โ09-15-2017 10:52 AM
Make sure your form is posting to https://test.authorize.net/payment/payment instead of https://test.authorize.net/payment/payment/
โ09-15-2017 10:52 AM
Thank you.
โ09-15-2017 12:38 PM
I thought this was fixed but it actually is not. When I use
https://test.authorize.net/payment/payment
I get the problem described below and when I use
https://test.authorize.net/payment/payment/
it is even worse as no buttons show up at all just a list of text with {} on the parameter names.
I really need to get this fixed right away.
Any suggestions?
Thanks,
Jennifer
โ09-29-2017 09:05 AM
If you are posting to https://test.authorize.net/payment/payment and having elements not display, then something else is going on, with either your server's content security policy (CSP) or your browser.
Do you have a live URL to check out?
โ09-29-2017 10:06 AM - edited โ09-29-2017 10:13 AM
When I just had this problem today and yesterday, I had to point my form to post to https://accept.authorize.net/payment/payment. Both for production on test mode and in sandbox. That's what allowed it to work for me.
โ10-02-2017 09:25 AM
The https://accept.authorize.net/payment/payment URL isn't going to work for Sandbox. The only way that URL would work correctly is if you posted a token to that URL that was requested from the production system.
โ10-02-2017 02:14 PM
I have tried it both ways, posting to the test url using sandbox credentials and posting to the production url using real credentials. Neither has worked.
โ10-04-2017 12:29 PM
Hi @jmorgret,
How are you posting the token to the URL? The first thing to check is that you're actually posting the token from the browser, correct? You're not actually making the HTTP connection to post the token from an application on the server, right? Sounds silly, but a few people have made that mistake, so I have to ask.
Beyond that, would you be able to post your token request code and the code that the browser uses to post the token?
โ10-04-2017 01:43 PM