Recipe
How it works
- Listen for the
primer:readyevent to get access to the Primer SDK instance - Set the
onPaymentSuccesscallback to handle successful payments - Use
window.location.hrefto redirect to your confirmation page - Pass the
orderIdas a query parameter so your confirmation page can display order details