# Checkout API in sandbox test

**URL:** <https://developer.squareup.com/forums/t/checkout-api-in-sandbox-test/8789>\
**Category:** Questions\
**Tags:** checkout-api\
**Created:** [March 8, 2023, 4:54am UTC](https://developer.squareup.com/forums/t/checkout-api-in-sandbox-test/8789 "2023-03-08T04:54:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnurt](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@gnurt](https://developer.squareup.com/forums/u/gnurt)\
**Post date:** [March 8, 2023, 4:54am UTC](https://developer.squareup.com/forums/t/checkout-api-in-sandbox-test/8789/1 "2023-03-08T04:54:39Z")

</div>

in sandbox test. I want to ask a few things  
1, in the product, I can enter the card and the sandbox can’t, right?  
2, when I use CreatePaymentLink to generate the checkout url. after successful payment test (as shown in the image below)

> **[Screenshot](https://prnt.sc/Cue_2CjWXArT)**
>
> Captured with Lightshot

i don’t know how to redirect to my successful checkout page. how can i setting the url after successful 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:** [March 8, 2023, 5:45pm UTC](https://developer.squareup.com/forums/t/checkout-api-in-sandbox-test/8789/2 "2023-03-08T17:45:07Z")

</div>

Yes, you are correct. In sandbox entering the card information isn’t currently available. Also at this time the ability to test the `redirect_url` in sandbox isn’t currently available. When a payment is completed and the customer is redirected Square will append the following to your URL:

```auto
https://www.redirect_url.com/?transactionId=tpEkkmWCsgZFGz9hcj88qeyreXEZY&orderId=tpEkkmWCsgZFGz9hcj88qeyreXEZY

```

🙂

---

<div class="post-metadata">

**Author:** ![gnurt](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@gnurt](https://developer.squareup.com/forums/u/gnurt)\
**Post date:** [March 9, 2023, 1:19am UTC](https://developer.squareup.com/forums/t/checkout-api-in-sandbox-test/8789/3 "2023-03-09T01:19:20Z")

</div>

Thank you  
I hope that redirect\_url will be develop in sandbox in the future

---

<div class="post-metadata">

**Author:** ![Al-FR33](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Al-FR33](https://developer.squareup.com/forums/u/Al-FR33)\
**Post date:** [May 1, 2024, 5:43pm UTC](https://developer.squareup.com/forums/t/checkout-api-in-sandbox-test/8789/5 "2024-05-01T17:43:00Z")

</div>

Hello,

Is there any opportunity to add these 2 features?  
Because it is really not easy to test a failed payment and the redirect url.

Does it exist a guide containing the GET parameters of the redirect url?

Thanks.
