Redirect customers to Snipcart

Once the customer has completed their payment, you'll probably want to redirect them from your external checkout page back to Snipcart's order confirmation screen.

Snipcart order confirmation screen

To achieve this, a returnUrl can be found inside the body of the payment endpoint response. You can retrieve this URL and redirect the customer using the Location object.

window.location.href = returnUrl

Next up

→ Refund payments