Skip to main content
@sleetpay/nextjs gives you four route handlers for the App Router (any runtime with Request and Response). It has no dependency on next and needs @sleetpay/sdk.
Link to checkout as /api/checkout?productId=prod_.... Optional query parameters: priceId, seats, discountId, currency and metadata (JSON, flat values only).
Identity is never read from the query. The customer always comes from getCustomer, so a visitor cannot check out as someone else.
Webhooks verify the signature on the raw body (403 for a bad or stale one) and answer 500 if your handler throws, so the delivery is retried. De-duplicate on the webhook-id header if your handler is not idempotent. See Webhooks.