StripeDravya NatarajExplainer
Build richer Stripe apps with the right integration approach
Summary
Stripe’s App Marketplace now supports several extensibility primitives, and this guide explains how to choose among them based on the user’s task. Full-page apps provide dedicated Dashboard experiences, scripts run TypeScript at Stripe-defined extension points, remote functions connect Stripe to partner-hosted logic, custom objects store structured app data, and Stripe Workflows connects triggers and actions. The recommended approach is to start with the user’s task and choose the simplest combination that satisfies it. A CRM-matching example shows how a customer.created event can trigger a Workflows automation, a remote function can perform matching against the partner’s database, a custom object can persist the relationship, and a full-page app can handle exceptions. The guide advises not to add a primitive unless you can name the requirement it satisfies, and to measure success with KPIs such as the percentage of automatic matches.
Context
The guide uses a CRM customer-matching app as a running example to show how full-page apps, scripts, remote functions, custom objects, and Stripe Workflows can be combined.
Approach / What changed
Start with the task the user needs to complete, then choose the simplest combination of primitives: full-page apps for Dashboard UI, scripts for Stripe-hosted logic at extension points, remote functions for partner-hosted logic, custom objects for structured app data, and Stripe Workflows for automation. Add a primitive only when it satisfies a named requirement, and measure success with KPIs.
Takeaways
Use metadata when a few string values attached to an existing Stripe object are enough; choose custom objects when the relationship needs its own schema, lifecycle, or Stripe-side behavior.
Scripts fit short transformations and declared API calls in Stripe’s managed environment, while remote functions are better when the logic already lives in your backend.
Stripe Workflows retries timeouts and 5xx responses with a stable request ID, so custom actions should verify request signatures and be idempotent; returning success before background work finishes records the action as successful.
FAQ
When should I use metadata instead of custom objects?
Use metadata when a few values attached to an existing Stripe object are enough, such as a single external customer identifier. Choose custom objects when the data needs its own schema, relationships, lifecycle, or Stripe-side behavior.
How do I choose between a script and a remote function?
If the action only needs a short transformation and a declared API call, keep it in a script. If the logic already lives in your backend, expose it through a remote function rather than rebuilding it in Stripe.
What should custom actions handle for Stripe Workflows retries?
Verify request signatures and make execution idempotent, because Stripe retries timeouts and 5xx responses and the request ID remains stable across retries. If you return success and start background work, Stripe Workflows records the action as successful before that work finishes.
Source and freshness
- Source
- stripe.dev
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.