- Desktop web — embed via the React SDK or an iframe.
- Mobile web — redirect to the Augustus-hosted checkout.
- Mobile native — open the Augustus-hosted checkout in the user’s default browser; return via deep linking.
Backend setup
Create a server-side endpoint that initiates a Checkout Session and returns theredirectUrl to your frontend.
server/routes/checkout.ts
Desktop web
Use the React SDK to embed the checkout in your page.React SDK
1
Install the SDK
2
Create the checkout component
components/IvyCheckout.tsx
3
Add styling
styles/ivy-checkout.css
Plain HTML (without the SDK)
If you can’t use React, render the iframe directly. The iframe communicates with your page viapostMessage.
checkout.html
postMessage with the following fields:
Mobile web
On mobile, redirect to the Augustus-hosted checkout. An iframe breaks the flow when the customer moves to and from their banking app.successCallbackUrl and errorCallbackUrl you pass to the Checkout Session point to pages on your site where the user lands after the bank flow completes.