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!
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:
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.
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.