# Square Payment Checkout Pop-up Page

**URL:** <https://developer.squareup.com/forums/t/square-payment-checkout-pop-up-page/14525>\
**Category:** Questions\
**Tags:** payments-api, checkout-api\
**Created:** [April 12, 2024, 6:20pm UTC](https://developer.squareup.com/forums/t/square-payment-checkout-pop-up-page/14525 "2024-04-12T18:20:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hotpotterypainting](https://avatars.discourse-cdn.com/v4/letter/h/e495f1/32.png) [@hotpotterypainting](https://developer.squareup.com/forums/u/hotpotterypainting)\
**Post date:** [April 12, 2024, 6:20pm UTC](https://developer.squareup.com/forums/t/square-payment-checkout-pop-up-page/14525/1 "2024-04-12T18:20:31Z")

</div>

Hi,  
I have got problem with the square checkout pop-up page that doesn’t open on the first attempt the majority of time. I get error 404. if customers refresh the page then it works and check out page successfully opens. Not all customers do that and when they get the error they simply decide not to proceed and I loose the business. I have created a new app and still getting this error. Sometime it goes through on the first attempt but majority of time it doesn’t. I have also tried regenerating new Access Token and still doesn’t work. Please advise how to fix the issue as it’s annoying.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [April 12, 2024, 6:20pm UTC](https://developer.squareup.com/forums/t/square-payment-checkout-pop-up-page/14525/2 "2024-04-12T18:20:53Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Troubleshoot In-App Payments SDK Problems](https://developer.squareup.com/docs/in-app-payments-sdk/troubleshooting)**
>
> Troubleshoot problems with the Square In-App Payments SDK.

> **[OAuth API Overview](https://developer.squareup.com/docs/oauth-api/how-it-works)**
>
> The OAuth API lets you request permissions from Square sellers to manage their resources and get access tokens to call Square APIs on their behalf.

> **Additional Documentation**
>
> [Guidelines and Limitations](https://developer.squareup.com/docs/checkout-api/guidelines-and-limitations)  
> [OAuth API Overview](https://developer.squareup.com/docs/oauth-api/overview)  
> [OAuth Walkthrough: Test Authorization with Web Server](https://developer.squareup.com/docs/oauth-api/build-with-oauth)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<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:** [April 12, 2024, 6:46pm UTC](https://developer.squareup.com/forums/t/square-payment-checkout-pop-up-page/14525/3 "2024-04-12T18:46:37Z")

</div>

Which URL are you using? Is it the `url` or `long_url`. If your directing the customer right after the link is created you’ll want to use the `long_url`. 🙂

---

<div class="post-metadata">

**Author:** ![hotpotterypainting](https://avatars.discourse-cdn.com/v4/letter/h/e495f1/32.png) [@hotpotterypainting](https://developer.squareup.com/forums/u/hotpotterypainting)\
**Post date:** [April 12, 2024, 9:09pm UTC](https://developer.squareup.com/forums/t/square-payment-checkout-pop-up-page/14525/4 "2024-04-12T21:09:42Z")

</div>

Sorry. I don’t know what do you mean by Url or Long Url. I am using Booknetic appointment system and I have copied pasted the “Access Token” and Location ID that Square application is giving me into my booking system payment setting.

---

<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:** [April 12, 2024, 9:14pm UTC](https://developer.squareup.com/forums/t/square-payment-checkout-pop-up-page/14525/5 "2024-04-12T21:14:08Z")

</div>

When you get this error, if you refresh the page does it load correctly? If so you’ll want to reach out to Booknetic. They should be using the `long_url` to redirect. 🙂

---

<div class="post-metadata">

**Author:** ![hotpotterypainting](https://avatars.discourse-cdn.com/v4/letter/h/e495f1/32.png) [@hotpotterypainting](https://developer.squareup.com/forums/u/hotpotterypainting)\
**Post date:** [April 12, 2024, 9:18pm UTC](https://developer.squareup.com/forums/t/square-payment-checkout-pop-up-page/14525/6 "2024-04-12T21:18:03Z")

</div>

Correct. It loads when you refresh it. I will notify them.
