Hi
I’ve followed the below guide web-payments-quickstart, which works fine on my ‘localhost’ but when I upload to the ‘production’ server I get a 404 for the ‘/payment’ file/endpoint.
Seems to be related to the following code snippets. But I’m not 100% sure on what I need to upload and setup on the production server.
Attached are some console screenshots, one of the error/console and another of the ‘network’
Any help will be greatly appreciated!
It looks the path to CreatePayment isn’t correctly defined in your production server and that’s why this error is being returned. You’ll want to double check the path is correctly defined so your server can process the payment.
Im using the card-payment.html from your QuickStart sdk which works perfectly on the localhost:3000 but as soon as I put the page into a website on the same server, I get the problem.
When you say define the path to the CreatePayment function on the client side, do you have a example of how that might read/look