Add the Fastify adapter
Install the adapter together with Zod:- npm
- yarn
- pnpm
- bun
Terminal
Register buyer checkout
RegisterCheckout on a GET route. It handles session creation and the redirect boundary.
Inputs accepted by the checkout route
For example,
?products=123&customerExternalId=user_42 selects a product and ties the session to your application identity.
Register account self-service
Map the incoming user to a Ruba customer ID. The adapter opens a portal session for that identity.Register the event receiver
Webhooks authenticates the request with your webhook secret, then dispatches its typed payload.
Choose callback granularity
UseonPayload as a catch-all or register callbacks around the domain your application owns: