Recipe
- Web
- Android
- iOS
How it works
- Web
- Android
- iOS
- Listen for the
primer:payment-successevent on the checkout element - Extract the
paymentobject fromevent.detail - Use
window.location.hrefto redirect to your confirmation page - Pass the
orderIdas a query parameter so your confirmation page can display order details
Variations
Redirect with payment ID
- Web
- Android
- iOS
Redirect to different pages based on payment method
- Web
- Android
- iOS
See also
Show custom success message
Display a branded success state after payment
Track payment in analytics
Send payment events to your analytics platform