Hello,
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?
Thanks,
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.
Hi,
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:
https://www.MY_REDIRECT_URL.com/?transactionId=32epdk1K0EggWrFMZNa2kN3IE0NZY&orderId=32epdk1K0EggWrFMZNa2kN3IE0NZY
The customer won’t be redirected till the payment is successful. If there are declined payments it will ask the customer try again.
1 Like