How to integrate Stripe with Salesforce, step by step

To integrate Stripe with Salesforce, install Stripe's official app for Salesforce, decide which system owns each piece of data, and map customers, payments and refunds to the Salesforce records your team already uses. Stripe offers a Stripe app for Salesforce Platform that works through Salesforce Flow Builder and Apex. The tool is the easy part. The decisions about what flows where are what keep sales and finance looking at the same numbers. What needs to flow between Stripe and Salesforce Three things matter most: customers, payments and refunds. Get these three right and most of the "why don't these numbers match?" arguments go away. Customers. A Stripe customer maps to a Salesforce Account or Contact. Store the Stripe customer ID on the Salesforce record as an external ID, so every later sync finds the right person. Payments. A Stripe PaymentIntent, Charge or Invoice maps to a payment record linked to an Opportunity or Order. This is how a rep sees "paid" on a deal without asking finance. Refunds and disputes. These must flow back to the same records as the original payment. If they don't, Salesforce keeps showing revenue that Stripe has already returned. Subscriptions are a fourth case. Map them to Orders or Contracts, depending on how your team sells. Why are Stripe and Salesforce data different? Usually because two systems each think they own the same fact. A rep edits a contact's email in Salesforce. The customer updates it in Stripe. Now there are two answers. The fix is a written ownership rule. A common split: Stripe owns payment status, amounts, refunds and dispute state. Salesforce owns account details, deal stages and ownership of the relationship. Write it down before you build anything. Every field you map should have exactly one owner. How to connect Stripe to Salesforce: the steps 1. Pick your approach. Use Stripe's app if you run on Stripe Billing. Use Flow or Apex if you take one off payments or need custom refund handling. Stripe's docs describe the app as built around the Billing data model, so plain one off payments and refunds outside Billing may need custom mapping. Check the docs for your case. 2. Start in a sandbox. Connect a Salesforce sandbox to Stripe test mode first. Break things there, not in front of your finance team. 3. Run the initial sync. The app offers a 1 click Billing data sync, which can run in real time or on a schedule. Stripe billing objects show up in Salesforce as custom objects, with prebuilt page layouts and default mapping to Sales Cloud objects. 4. Check the field mapping. Review how customers, invoices and subscriptions land on your Accounts, Opportunities and Orders. Change the defaults where your process differs. 5. Subscribe to Stripe events. The app is event driven. You choose which Stripe events to listen for and which Salesforce objects and fields they update. Events can also trigger Salesforce flows. 6. Add the exceptions. Set up flows for the events people actually care about, such as a refund issued or a payment that fails. 7. Test with real scenarios, then go live. Run a successful payment, a refund and a failed card in the sandbox. Confirm each shows up on the right record. Stripe to Salesforce field mapping: a starting point Use this as a first draft and adjust it to your setup. Stripe customer → Account or Contact Stripe customer ID → external ID field on that record Invoice or PaymentIntent → payment record tied to an Opportunity or Order Subscription → Order or Contract Refund → update on the original payment record Dispute → update on the same record, plus a task or alert for finance If your Salesforce Billing setup creates Stripe subscriptions when an order is activated, Stripe's docs say a Salesforce Billing extension provides flow templates for exactly that. A concrete example A rep closes a $2,400 annual deal. The customer pays by card through Stripe. Within minutes, the Opportunity shows "Paid", with a link to the invoice. Three weeks later, finance refunds $400. The refund event updates the same payment record. The rep sees the change on the deal, and finance sees the same figure in Stripe. Nobody exports a CSV to settle it. Can you do it without code? Partly. Stripe's app is built on Flow Builder, so much of the setup is point and click. Apex is there when you need to call Stripe objects and methods directly. Expect to touch code for unusual refund rules or one off payment flows. For a simple Billing setup, you may not need it. Mistakes to avoid Syncing without an external ID. Matching by email creates duplicates the first time someone changes address. Letting both systems edit payment status. Pick Stripe and lock the field in Salesforce. Handling webhooks that aren't idempotent. Stripe can send the same event more than once. Your flow should produce the same result if it runs twice. Ignoring failed payments. Surface them on the account, so the rep who owns the relationship knows before the customer writes in. FAQ Is there a native Stripe Salesforce integration? Yes. Stripe offers an official app for the Salesforce Platform. It handles Billing data sync, event subscriptions and direct API access from Apex. Can I use Stripe webhooks with Salesforce Flow? Yes. Stripe events can trigger Salesforce flows, and you choose which events map to which objects and fields. Get one version of the truth The core of how to integrate Stripe with Salesforce is simple: one owner per field, customers keyed by Stripe ID, and refunds that land on the original payment. If your setup needs custom mapping or goes beyond Billing, that's the kind of App and API integrations work we do. Let's build it at otterlytics.com.