Getting started
Node.js Quick Start
Create checkout sessions and handle webhooks with the FloPay server SDK.
Node.js Quick Start
The @flopay/node package provides server-side operations: creating checkout sessions, verifying webhooks, and managing customers.
Initialize
Create a Checkout Session
Subscriptions
Pass subscriptions instead of (or alongside) items:
Verify Webhooks
The FloPay Node constructor requires a Stripe secret key. It initializes a Stripe client internally with the flopay-node app identifier.
API Overview
| Namespace | Methods |
|---|---|
flopay.checkout.sessions | create, retrieve, expire, listLineItems |
flopay.webhooks | constructEvent |
flopay.customers | create, retrieve, update |