Keep one operation identity.
Bind the business intent and its terms before a supported mutation. Completed retries reuse the recorded result.
Operations →Stripe reliability for Node.js
A retry should continue the same operation. SafeStripe keeps its identity in your database, persists verified webhooks and helps workers recover after a crash.
npm install safestripe
0.3.0 evaluation preview · Node.js ≥ 22.19
Inspect the release status →
refund:order-1042Identity retained
Record the operation and its terms.
The remote mutation succeeds.
Your server sees a timeout.
Continue the recorded operation.
Retries are bounded by the recovery window. Missing history and older ambiguous outcomes need reconciliation.
Beyond an API wrapper
Stripe's idempotency key is one layer. Webhook admission, business effects and downstream delivery each need their own durable boundary.
Bind the business intent and its terms before a supported mutation. Completed retries reuse the recorded result.
Operations →Verify the webhook, persist the work and let expiring leases recover a crashed worker's claim.
Webhook processing →Guard the outcome with a business key. State and outbox intent commit in the same transaction.
Transactional effects →Fits the application you run
Use the supported adapter that fits your stack. SafeStripe coordinates the work; your application owns authorization, prices and fulfillment policy.
Explore the integrations →Read the evidence
Try it with actual test records
The online sandbox uses the published npm package, Express and Cloud Firestore.