First payment
From a test key
to a saved receipt.
Try the hosted sandbox with nothing to install, or connect SafeStripe to your own application. Start with one payment before exploring the billing workflows.
No installation
Try one hosted checkout.
The sandbox uses Express, Cloud Firestore and the published
safestripe@0.3.0 package. It creates actual records in your dedicated Stripe
sandbox.
Test secret keys still grant access to sandbox data and settings. Enter keys only in the website's masked fields. Never put them in an issue, screenshot or public recording.
-
Connect your test keys.
Use a dedicated Stripe sandbox's secret key and matching publishable key. Automatic setup creates the customer, prices and webhook destination.
-
Open Hosted checkout.
Pay with
4242 4242 4242 4242, a future expiry and a valid three-digit CVC. Use test details only. -
Wait for the verified receipt.
Return to the workspace and inspect the payment checks. A redirect or connected badge alone is not proof of payment.
-
Review and clean up.
Use Your test records and cleanup when finished. Financial history remains in Stripe; cleanup does not erase it.
Your own application
Install the library.
Add only the drivers you use.
Use Node.js 22.19 or newer. The Stripe server SDK is included; consumers do not install it separately.
npm install safestripe
| You use | Add | Requirement |
|---|---|---|
| Express | npm install express express-rate-limit |
Authentication and server-approved billing terms |
| Next.js | Your existing application | Node runtime; worker outside request handlers |
| PostgreSQL | npm install pg |
Durable database and migrations |
| MongoDB | npm install mongodb |
Replica-set transaction support |
| Cloud Firestore | npm install @google-cloud/firestore |
Server credentials and indexes |
| Local SQLite | No database driver | One active worker; local development |
The optional React payment form has separate browser dependencies. Follow Payment UI if you want an embedded form.
Create your billing service.
Choose an adapter, set server credentials and define an authorization policy.
2 · IntegrateAdd routes and the worker.
Express and Next.js examples preserve the raw webhook body and stable operation identity.
3 · ValidateTest your deployment.
Check the recovery contracts, tenant policy and adoption requirements before using live funds.
Prefer a complete local app?
Run the repository tutorial.
The Express and Next.js examples share a SQLite workflow. No Docker required. This is example tooling, separate from installing the npm library in your app.
Five minutes to a verified receipt is the onboarding target once prerequisites are ready. Independent timed runs have not established it yet. If a step is unclear, report where you got stuck. Interrupted sandbox setup should be resumed in the same workspace.