# Problem with const paymentresponse - File not found

**URL:** <https://developer.squareup.com/forums/t/problem-with-const-paymentresponse-file-not-found/6752>\
**Category:** Questions\
**Tags:** web-payments-sdk\
**Created:** [August 9, 2022, 9:59pm UTC](https://developer.squareup.com/forums/t/problem-with-const-paymentresponse-file-not-found/6752 "2022-08-09T21:59:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wizard2475](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/wizard2475/32/1453_2.png) [@wizard2475](https://developer.squareup.com/forums/u/wizard2475)\
**Post date:** [August 9, 2022, 9:59pm UTC](https://developer.squareup.com/forums/t/problem-with-const-paymentresponse-file-not-found/6752/1 "2022-08-09T21:59:55Z")

</div>

Followed the instructions for web-payments-quickstart and everything went great. Got the green checkmark. Continued with the instructions to deploy to production and the following is the problem: const paymentResponse = await fetch(‘/payment’, {  
method: ‘POST’,  
headers: {  
‘Content-Type’: ‘application/json’,  
},  
body,  
});  
My console gave me this error:  
 ![payment error](https://global.discourse-cdn.com/square/original/2X/1/12a630bfa610ca3cbdcf517d65e0c0f75d9d91d8.png)

Triple checked my production settings. Still the same.

Looks like I’m missing something  
Thank You

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [August 10, 2022, 12:24am UTC](https://developer.squareup.com/forums/t/problem-with-const-paymentresponse-file-not-found/6752/2 "2022-08-10T00:24:23Z")

</div>

Hey @wizard2475! The quickstart relies on some dependencies for that `fetch` to properly connect to the project’s backend. In production, are you using the same stack as the quickstart project is? If so, can you verify if the dependencies are installed correctly?

Please also note that the Web Payments SDK quickstart is set up as Node project, but Square is not opinionated about what you use for your backend. As long as you’re able to make HTTP requests and pass the payment token from your frontend to your backend, feel free to use whatever backend you’re comfortable with.

---

<div class="post-metadata">

**Author:** ![wizard2475](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/wizard2475/32/1453_2.png) [@wizard2475](https://developer.squareup.com/forums/u/wizard2475)\
**Post date:** [August 10, 2022, 1:30am UTC](https://developer.squareup.com/forums/t/problem-with-const-paymentresponse-file-not-found/6752/3 "2022-08-10T01:30:26Z")

</div>

I may have missed some dependencies as I was moving kind of fast. My bad. Please send me the dependencies that I need. My app is hosted by GoDaddy. I do have terminal access.

---

<div class="post-metadata">

**Author:** ![wizard2475](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/wizard2475/32/1453_2.png) [@wizard2475](https://developer.squareup.com/forums/u/wizard2475)\
**Post date:** [August 10, 2022, 6:53pm UTC](https://developer.squareup.com/forums/t/problem-with-const-paymentresponse-file-not-found/6752/4 "2022-08-10T18:53:06Z")

</div>

I installed all the dependencies with composer. I added a payment file to the folder. I ran a card for $1.00 in production. I then received “Successful” with green checkmark. When I checked the dashboard There was nothing there. So I checked the developer dashboard and there was nothing there either. I double checked the credentials and everything was good. So where did the transaction go?  
At my wits end here, please help

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [August 10, 2022, 10:31pm UTC](https://developer.squareup.com/forums/t/problem-with-const-paymentresponse-file-not-found/6752/5 "2022-08-10T22:31:47Z")

</div>

For the quickstart project, all dependencies can be found in the [package.json](https://github.com/square/web-payments-quickstart/blob/main/package.json). However, it sounds like you’re using PHP for your app. If that’s the case, these dependencies wouldn’t be relevant to you, as they’re for the Node-based quickstart project.

If you’re looking for a PHP example, I recommend checking out our [PHP Payment example project on GitHub](https://github.com/square/connect-api-examples/tree/master/connect-examples/v2/php_payment).
