Square hosted checkout page - Payment success/failure handling

I am trying to use a Square hosted checkout page, by invoking the Checkout API. However, in the sandbox mode, I am only able to see a “Preview Link”, which doesn’t actually let me enter the test credit card and check the payment success/failure results. How do I simulate it? If simulation is not possible in sandbox, what happens after payment is successful / failed?


This is currently the expected behavior in sandbox. It’s not a complete experience. If you want the complete experience you’ll need to test in production. :slightly_smiling_face:

Please advise how to handle success/failure from Square Hosted Checkout page?

When there is a successful payment and the customer is redirected we will append the order_id to the URL. I will look like:


The customer won’t be redirected till the payment is successful. If there are declined payments it will ask the customer try again. :slightly_smiling_face:

1 Like