# Payment form issues

**URL:** <https://developer.squareup.com/forums/t/payment-form-issues/2325>\
**Category:** Questions\
**Tags:** payment-form\
**Created:** [April 15, 2021, 6:54pm UTC](https://developer.squareup.com/forums/t/payment-form-issues/2325 "2021-04-15T18:54:17Z")\
**Posts on this page:** 1\
**Page:** 2

<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 26, 2021, 6:04pm UTC](https://developer.squareup.com/forums/t/payment-form-issues/2325/21 "2021-08-26T18:04:20Z")

</div>

With Square the only time the `401 Unauthorized` error happens is if:

1. Credentials aren’t correctly configured
2. The `JS` library for the form isn’t configured to the same environment that your credentials are from.
3. The base path URL is set to a different environment than your credentials.

[Previous page](https://developer.squareup.com/forums/t/payment-form-issues/2325.md?page=1)
