In our system, we give customers a fixed amount of time to complete their transaction after adding a product in cart and proceeding to checkout. If the customer doesn’t make a payment before the timer expires, we cancel the order.
My question is:
How can I prevent customers from making the payment on the Square checkout payment page created by the v2/online-checkout/payment-links
API?
I found this API that deletes the payment link (/v2/online-checkout/payment-links/{id}
), which prevents the customer from completing the payment. However, the issue is that the Square payment page isn’t redirecting the customer back to my website.
In short: I want to ensure that customers cannot complete the payment on the Square payment page after a fixed amount of time, and then the Square payment page redirects customers back to my website. This is crucial.
3 posts - 2 participants