# I'm stuck with production payment got bad request error

**URL:** <https://developer.squareup.com/forums/t/im-stuck-with-production-payment-got-bad-request-error/3867>\
**Category:** Questions\
**Tags:** payments-api, payment-form\
**Created:** [October 5, 2021, 4:27pm UTC](https://developer.squareup.com/forums/t/im-stuck-with-production-payment-got-bad-request-error/3867 "2021-10-05T16:27:22Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![prdraco](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@prdraco](https://developer.squareup.com/forums/u/prdraco)\
**Post date:** [August 12, 2023, 10:22pm UTC](https://developer.squareup.com/forums/t/im-stuck-with-production-payment-got-bad-request-error/3867/21 "2023-08-12T22:22:19Z")

</div>

No. Sorry. I can’t do anything about it.  
I didn’t find any solution.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [August 14, 2023, 3:54pm UTC](https://developer.squareup.com/forums/t/im-stuck-with-production-payment-got-bad-request-error/3867/22 "2023-08-14T15:54:07Z")

</div>

When switching to production did you go through the Deploy to [Production steps](https://developer.squareup.com/docs/web-payments/take-card-payment#deploy-the-application)? 🙂

---

<div class="post-metadata">

**Author:** ![mizzou626](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@mizzou626](https://developer.squareup.com/forums/u/mizzou626)\
**Post date:** [August 15, 2023, 5:13am UTC](https://developer.squareup.com/forums/t/im-stuck-with-production-payment-got-bad-request-error/3867/23 "2023-08-15T05:13:17Z")

</div>

Yes, I’ve followed these steps and also swapped out the sandbox location id with the production location id. That isn’t listed in the [Production steps](https://developer.squareup.com/docs/web-payments/take-card-payment#deploy-the-application) but I assume that was supposed to be replaced as well.

 ![image](https://global.discourse-cdn.com/square/original/2X/2/2c4826706fd7c9736791352d061abeb2a4c7f548.png)

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [August 15, 2023, 4:42pm UTC](https://developer.squareup.com/forums/t/im-stuck-with-production-payment-got-bad-request-error/3867/24 "2023-08-15T16:42:26Z")

</div>

Is this with our example using localhost? If so what command are you using to start the server? Is it `npm run dev` or `npm start`? For production you’ll need to run `npm start` 🙂

---

<div class="post-metadata">

**Author:** ![mizzou626](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@mizzou626](https://developer.squareup.com/forums/u/mizzou626)\
**Post date:** [August 15, 2023, 5:52pm UTC](https://developer.squareup.com/forums/t/im-stuck-with-production-payment-got-bad-request-error/3867/25 "2023-08-15T17:52:57Z")

</div>

In the screenshot I attached previously you’ll see that I am running npm start and getting the error. I’m following the steps outlined in the [Take a Card Payment](https://developer.squareup.com/docs/web-payments/take-card-payment) walkthrough.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [August 21, 2023, 5:46pm UTC](https://developer.squareup.com/forums/t/im-stuck-with-production-payment-got-bad-request-error/3867/26 "2023-08-21T17:46:20Z")

</div>

This is fixed now if you pull a new version of the Quickstart. 🙂

[Previous page](https://developer.squareup.com/forums/t/im-stuck-with-production-payment-got-bad-request-error/3867.md?page=1)
