Node.js dev issue

If just needs to POST the generated source_id and verification_id to the CreatePayment function on your server. Then when the function completes your server can respond with the results of the payment. :slightly_smiling_face:

Bryan,

I feel like you’re not hearing what I’m saying. You cannot POST from the javascript to server. The client cannot talk to the server, it just can’t. All you get is CORS errors when you try to connect the card-payment file (which is being hosted in https) to the server nodejs, which is running http. Can the html run under straight http?

Thanks,

Jeff

Our example uses fetch to send information to the server. The server then POST the information it receives. Once the payment is processed then your server can send the response from Square back to the client. :slightly_smiling_face:

Only in the sandbox. What you are describing does not work in production. You get a CORS error.

Thanks,

Jeff