Trying to setup initial test payment - cannot find /process-payment

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!

671 Views
Message 1 of 2
Report
1 REPLY 1
Square Community Moderator

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!

Ashley C
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
624 Views
Message 2 of 2
Report