I’m new to the square api and it seems like all examples show one set of code snippets but whenever you click on the “get the code here” link it inevitably takes you to this example…
Which would be okay if it worked but it’s looking for this on line 26
const paymentResponse = await fetch(‘/payment’, {
method: ‘POST’,
and I’m not finding that file anywhere. Does anyone have that file in preferably php or any kind of point in the right direction.