I'm new to Square, and I just downloaded the sqpaymentform-nodejs-starterkit-master key which includes the index.html and server.js files. I modified them according to the instructions at https://developer.squareup.com/docs/payment-form/payment-form-walkthrough and it does receive the nonce, but the final step is failing with a 404 unable to find /process-payment.
All that was provided was the index.html and server.js file.
Are the docs missing something? Where are the necessary files for /process-payment, etc?
Thanks for any help you can provide!
Hi @babycity,
I reached out to our API team and they replied with the following:
In step 2.2 it shows the process-payment “page” (really it just creates a payment and returns the response). This already exists in the server.js file that is provided in the Github repo.
They also linked this page to our Developer site that's a walkthrough!
Square Community