Stripe
Prefer verifying Stripe signatures in the connector, then emit to Qefro.
Installation
- Deploy or enable the Stripe connector service (Qefro connectors monorepo / your fork).
- Configure credentials (below) and
QEFRO_API_BASE_URL,QEFRO_TENANT_ID, API token. - Point external webhooks at the connector public URL (not directly at FlowRunner).
- In Qefro, declare flows with
trigger.eventmatching emitted names — Event-Driven Triggers. - Sync SDK tools if the connector exposes Backend SDK handlers.
Authentication
Restricted API keys; verify Stripe webhook signatures before emit.
Store secrets in the connector environment or secret manager — not in flow metadata.
Events
| Event name | Notes |
|---|---|
stripe.invoice.paid | Emit when source system notifies connector |
stripe.invoice.payment_failed | Emit when source system notifies connector |
stripe.customer.subscription.updated | Emit when source system notifies connector |
Envelope fields (idempotency, correlation, TTL): Event reference.
Tools
Typical tool surface: invoice lookup, subscription status.
Implement as Backend SDK tools or REST Business Tools. Keep PII minimization and least privilege scopes.
Webhooks
- Receive provider webhook → verify signature.
- Normalize payload →
EventEmitter.emit({ name: 'stripe.…', payload, idempotencyKey }). - Return 2xx quickly; let Qefro dispatch asynchronously.
Examples
- Abandoned cart pattern: Solutions — Abandoned cart (Shopify-oriented; adapt event names).
- Order tracking: Solutions — Order tracking.
Workflow checklist
Stripe go-live
- Auth — Least-privilege credentials in connector env.
- Webhooks — Verify signatures; map to stripe.* events.
- Flows — Enable flows with matching trigger.event.
- Test emit — Idempotent test event; watch Flow Runs.
- Observe — Event list + tool logs + dead-letter retry.