# Square parameters are not being added to checkout redirect\_url

**URL:** <https://developer.squareup.com/forums/t/square-parameters-are-not-being-added-to-checkout-redirect-url/20871>\
**Category:** Questions\
**Tags:** checkout-api\
**Created:** [January 29, 2025, 10:29pm UTC](https://developer.squareup.com/forums/t/square-parameters-are-not-being-added-to-checkout-redirect-url/20871 "2025-01-29T22:29:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xfyre24](https://avatars.discourse-cdn.com/v4/letter/x/e8c25b/32.png) [@xfyre24](https://developer.squareup.com/forums/u/xfyre24)\
**Post date:** [January 29, 2025, 10:29pm UTC](https://developer.squareup.com/forums/t/square-parameters-are-not-being-added-to-checkout-redirect-url/20871/1 "2025-01-29T22:29:02Z")

</div>

Hi!

I’m using checkout API (POST /v2/online-checkout/payment-links). According to the documentation, Square should add orderId, transactionId, and referenceId to the URL specified in redirect\_url parameter. However, this is not happening (at least in sandbox environment). Square redirects to the URL “as specified”, and all of the transaction information is missing.

Is this behavior expected? I need to pass transaction information back to my website. Thanks!

Sincerely,  
Ilya

---

<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:** [January 29, 2025, 10:29pm UTC](https://developer.squareup.com/forums/t/square-parameters-are-not-being-added-to-checkout-redirect-url/20871/2 "2025-01-29T22:29:15Z")

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

> **[Square Order Checkout](https://developer.squareup.com/docs/checkout-api/square-order-checkout)**
>
> Learn how to create a checkout for a Square order.

> **[Payments API Integration](https://developer.squareup.com/docs/pos-api/payments-integration)**
>
> Learn how to get payment details from a Point of Sale API transaction ID.

> **Additional Documentation**
>
> [Build a Payment Integration and Take Payments Online](https://developer.squareup.com/docs/online-payment-options)  
> [Test in the Sandbox](https://developer.squareup.com/docs/devtools/sandbox/testing)  
> [Checkout API](https://developer.squareup.com/docs/checkout-api)

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:** [January 29, 2025, 11:05pm UTC](https://developer.squareup.com/forums/t/square-parameters-are-not-being-added-to-checkout-redirect-url/20871/3 "2025-01-29T23:05:36Z")

</div>

Yes, this is the expected behavior in sandbox because payment links aren’t fully supported in sandbox. In production the `orderId` will be appended to the end of the `redirect URL`. 🙂
