"checkout_options": {
"redirect_url": "www"
}
If a payment fails the customer will not be redirected but shown an error on the Square hosted page. They’ll be able to reattempt he payment or enter a different payment method till the payment is successful.
okay and how do I test payment with testing credentials ? because i want to save the payment log after successful payment in the db for that I need to work on consuming the response after payment
It’s not possible at this time to test the redirect in sandbox with the payment links. You’ll have to use production to test at this time.