@buckspay/nextjs exports two App Router route factories. They act as the BFF (Backend for
Frontend) boundary described in Facilitator and BFF: the
browser POSTs to your same-origin routes; the routes forward to the facilitator with the secret
credentials server-side.
Full example
The snippet below shows all three route handlers in a single file for reference. In production, each goes in its ownroute.ts under app/.
Next
Facilitator and BFF
Why the API key must stay server-side and how the BFF slot fits the payment flow.
Web - @buckspay/react
The browser-side hooks that POST to your BFF relay route.

