Skip to main content

Add the Fastify adapter

Install the adapter together with Zod:
Terminal

Register buyer checkout

Register Checkout 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

Use onPayload as a catch-all or register callbacks around the domain your application owns: