# Checkout API Sandbox Testing Panel "Test Payment" button not working

**URL:** <https://developer.squareup.com/forums/t/checkout-api-sandbox-testing-panel-test-payment-button-not-working/18535>\
**Category:** Questions\
**Tags:** payment-form, payments-api, sandbox, webhooks-api, checkout-api\
**Created:** [September 1, 2024, 8:14pm UTC](https://developer.squareup.com/forums/t/checkout-api-sandbox-testing-panel-test-payment-button-not-working/18535 "2024-09-01T20:14:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![iliaskirko](https://avatars.discourse-cdn.com/v4/letter/i/f19dbf/32.png) [@iliaskirko](https://developer.squareup.com/forums/u/iliaskirko)\
**Post date:** [September 1, 2024, 8:14pm UTC](https://developer.squareup.com/forums/t/checkout-api-sandbox-testing-panel-test-payment-button-not-working/18535/1 "2024-09-01T20:14:10Z")

</div>

Hello,  
I am testing Checkout API. I was able to create a test order and I am trying to test WebHook to my service on “payment.updated” event.  
I have created a payment link by calling `POST /v2/online-checkout/payment-links` and opened URL from response in my browser.

 ![Screenshot 2024-09-01 at 23.06.27](https://global.discourse-cdn.com/square/original/2X/9/931702dd74b44c7d41c9d643987628acf489561d.png)  
I tried to use “Test payment” feature, but got a `500 HTTP Internal Server Error {"success":true,"error":"An unknown error occurred."}`  
Is it something I missed in my configuration, or in my request?  
Is there a way to make this working?  
Is there an other way to complete payment that was created by calling `payment-links` endpoint?

---

<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:** [September 1, 2024, 8:14pm UTC](https://developer.squareup.com/forums/t/checkout-api-sandbox-testing-panel-test-payment-button-not-working/18535/2 "2024-09-01T20:14:29Z")

</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:

> **[Payments API Webhooks](https://developer.squareup.com/docs/payments-api/webhooks)**
>
> Learn about the Square webhook notifications supported by the Payments API.

> **[Checkout API](https://developer.squareup.com/docs/checkout-api)**
>
> Learn how to use Square-hosted checkout pages for processing payments.

> **Additional Documentation**
>
> [Checkout API](https://developer.squareup.com/docs/checkout-api-overview)  
> [Handle Bookings Webhook Events](https://developer.squareup.com/docs/bookings-api/use-webhooks)  
> [Refunds API Webhooks](https://developer.squareup.com/docs/refunds-api/webhooks)

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:** [September 3, 2024, 3:53pm UTC](https://developer.squareup.com/forums/t/checkout-api-sandbox-testing-panel-test-payment-button-not-working/18535/3 "2024-09-03T15:53:00Z")

</div>

What’s the payment link that’s throwing this error and what’s you application ID? 🙂

---

<div class="post-metadata">

**Author:** ![iliaskirko](https://avatars.discourse-cdn.com/v4/letter/i/f19dbf/32.png) [@iliaskirko](https://developer.squareup.com/forums/u/iliaskirko)\
**Post date:** [September 3, 2024, 7:20pm UTC](https://developer.squareup.com/forums/t/checkout-api-sandbox-testing-panel-test-payment-button-not-working/18535/4 "2024-09-03T19:20:40Z")

</div>

Hello,  
Here is the link [Checkout API Sandbox Testing Panel](https://sandbox.square.link/u/MEeQZaT1)  
Application Id: sandbox-sq0idb-NHEU04g9F0WUAtah8KQq0g

---

<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:** [September 3, 2024, 8:08pm UTC](https://developer.squareup.com/forums/t/checkout-api-sandbox-testing-panel-test-payment-button-not-working/18535/5 "2024-09-03T20:08:15Z")

</div>

I was able to replicate this and I’m checking with the team. 🙂

---

<div class="post-metadata">

**Author:** ![iliaskirko](https://avatars.discourse-cdn.com/v4/letter/i/f19dbf/32.png) [@iliaskirko](https://developer.squareup.com/forums/u/iliaskirko)\
**Post date:** [September 7, 2024, 7:56pm UTC](https://developer.squareup.com/forums/t/checkout-api-sandbox-testing-panel-test-payment-button-not-working/18535/6 "2024-09-07T19:56:40Z")

</div>

Hello,  
Do you have any updates on that?  
Is there another way to test payment?

---

<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:** [September 9, 2024, 4:05pm UTC](https://developer.squareup.com/forums/t/checkout-api-sandbox-testing-panel-test-payment-button-not-working/18535/7 "2024-09-09T16:05:20Z")

</div>

Looks like this is failing because you don’t have a `pickup_at` time. A SCHEDULED pickup must have a `pickup_at` time. The team is aware that we shouldn’t be throwing a `5xx` and are working to fix that. 🙂

---

<div class="post-metadata">

**Author:** ![iliaskirko](https://avatars.discourse-cdn.com/v4/letter/i/f19dbf/32.png) [@iliaskirko](https://developer.squareup.com/forums/u/iliaskirko)\
**Post date:** [September 10, 2024, 7:48am UTC](https://developer.squareup.com/forums/t/checkout-api-sandbox-testing-panel-test-payment-button-not-working/18535/8 "2024-09-10T07:48:47Z")

</div>

Thanks,  
I managed to get this working only when I supplied all fields to `FulfillmentPickupDetails`: `ScheduleType: ASAP`, `PickupWindowDuration`, `PrepTimeDuration`, `ExpiresAt`.  
It would be helpful if all required fields are marked as those in the documentation, as it would have saved a lot of time.  
The “Required” markers are actually present in the documentation, but not next to each required field.  
 ![Screenshot 2024-09-10 at 10.46.21](https://global.discourse-cdn.com/square/original/2X/4/48b236e31d20cdbcba37e750b0d3f9f893d4fc90.png)
