Add the Hono adapter
Install the handler package with its schema dependency:- npm
- yarn
- pnpm
- bun
Terminal
Expose a checkout route
AttachCheckout to app.get. It turns the request into a Ruba checkout transition.
Inputs accepted by the checkout route
For example,
?products=123&customerExternalId=user_42 selects a product and ties the session to your application identity.
Expose a customer portal route
Resolve the request to the correct Ruba customer. The handler creates the portal session and redirect.Accept verified webhook events
The webhook handler checks the signature with your endpoint secret before your callback executes.Choose callback granularity
UseonPayload as a catch-all or register callbacks around the domain your application owns: