Skip to main content
Stripe → SalesforceIntegration guide

Connecting Stripe to Salesforce

Stripe knows exactly what was paid, by whom, and when — down to the cent, including the refund three weeks later. Sending conversions into Salesforce rather than out of it is how marketing data reaches the place sales actually works. The join between them succeeds or fails on one thing: whether the Lead or Contact identity reaches the Stripe Customer or PaymentIntent before the conversion happens, because Salesforce can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Stripe into Salesforce: paid invoices on the record sales owns

Store the Salesforce Account or Contact ID in Stripe Customer metadata, so invoice.paid and charge.refunded webhooks find the record, or evaluate Stripe's connector. Write payment status, amount, first-payment date and plan to Opportunity or Account fields, and close-won on the first succeeded payment. That makes offline conversion uploads trustworthy. Update refunds and check validation rules.

The reason to put Stripe data in Salesforce is a sales-assisted business: a demo leads to a quote, the quote to a Stripe invoice or subscription, and sales needs to see what was actually paid. The join is the Salesforce Account or Contact ID stored in Stripe Customer metadata when sales or your app creates the customer, so every invoice.paid or charge.refunded webhook can find its record.

Stripe has published a connector for syncing Stripe objects into Salesforce; check whether its object model matches how your org reports revenue before adopting it. A lighter approach writes payment status, amount, first-payment date and plan to custom fields on the Opportunity or Account, and moves the Opportunity to closed-won on the first succeeded payment rather than when a rep changes the stage by hand.

Closed-won driven by Stripe is what makes offline conversion uploads trustworthy. The Lead's stored gclid or hashed email, carried onto the Opportunity, plus the Stripe-confirmed amount and date, is a conversion you can send to Google or Meta knowing it was paid. Refunds and disputes should update the record too, or a refunded deal stays closed-won. Watch validation rules on stage changes; an automated close from a webhook often fails a rule written for reps.

Stripe → Salesforce · what breaks

Why this join usually fails — Stripe → Salesforce

  1. 01

    The Lead or Contact identity never reaches Stripe

    Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created.

  2. 02

    Checkout is on Stripe's domain, so the browser loses the thread

    The customer leaves your site, pays somewhere else, and comes back to a thank-you page. Anything relying on browser continuity across that hop is unreliable, and on Safari it is worse than unreliable.

  3. 03

    Writes that succeed and change nothing

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  4. 04

    Nothing reconciles afterwards

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

Stripe → Salesforce · the fix

What working looks like — Stripe → Salesforce

  • The Lead or Contact identity on every payment

  • Conversions arriving in Salesforce

    The marketing context appears on the record and flows into the opportunity, where sales and reporting can both use it.

  • Reconciled against the source

Stripe → Salesforce · architecture

How Stripe and Salesforce actually connect

  1. 1

    Stripe holds the truth

    Every succeeded PaymentIntent is a real conversion with a real amount and currency. No sampling, no modeling, no consent gate. This is the number the business actually banked, which is why it is the reference rather than anything either ad platform reports.

  2. 2

    Salesforce needs a click to match

    Salesforce needs a resolvable record and a custom field to write to. Field-level security and validation rules can silently reject writes, which is a Salesforce-specific failure that returns success at the API level and changes nothing.

  3. 3

    The identifier is the bridge

    The Lead or Contact identity, captured at the visit and carried into the Stripe Customer or PaymentIntent.

  4. 4

    The event source decides reliability

    Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.

  5. 5

    Deduplication at the destination

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

Stripe → Salesforce · normal or broken

Working vs. broken, side by side — Stripe → Salesforce

Normal, not a fault

  • The Lead or Contact identity present on the payment

  • Sent from the Stripe webhook

  • Deduplicated correctly

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

  • Reconciles with the source

Actually broken

  • The Lead or Contact identity missing on most records

    Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created.

  • Sent from the browser

    The customer leaves your site, pays somewhere else, and comes back to a thank-you page. Anything relying on browser continuity across that hop is unreliable, and on Safari it is worse than unreliable.

  • Counted twice, or not at all

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  • Nobody has reconciled it

Stripe → Salesforce · diagnose

Diagnostic order — Stripe → Salesforce

  1. 01

    Count payments carrying the Lead or Contact identity

  2. 02

    Follow one real conversion end to end

  3. 03

    Open one succeeded PaymentIntent in the Stripe dashboard

    Look at its Metadata section. If the identifier is not there, nothing downstream can fix it — the join is broken at the source and every other check is wasted effort.

  4. 04

    Write a test value and open the record in the UI

    The API saying it worked and the field actually holding the value are different things in Salesforce more than anywhere else.

  5. 05

    Read the match rate, not the success message

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

Stripe → Salesforce · prove

How it gets proven — Stripe → Salesforce

Source of truth

The Stripe dashboard — Payments, filtered to succeeded, for the same window.

  • The Lead or Contact identity confirmed present on a live payment.
  • A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
  • A refunded payment confirmed to reverse, not just the sale confirmed to send.

Stripe → Salesforce · free audit

What we check in the free audit

  • Count payments carrying the Lead or Contact identity
  • Follow one real conversion end to end
  • Open one succeeded PaymentIntent in the Stripe dashboard
  • Write a test value and open the record in the UI
  • Read the match rate, not the success message

Checked against

The Stripe dashboard — Payments, filtered to succeeded, for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

Stripe → Salesforce · when not to buy

When you don't need this — Stripe → Salesforce

  • Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the Lead or Contact identity.
  • If you take payment through a hosted Payment Link or Buy Button and have no server creating sessions, this needs a development change on your side before any tracking work is worth commissioning. Worth knowing before you pay for tracking.
  • If your Salesforce org is administered by a team you cannot get time with, scope their availability before starting — this build is usually blocked on admin access rather than on the work.

Stripe → Salesforce · what we deliver

What gets built — Stripe → Salesforce

  • Identifier capture into Stripe

    Read the click identifier from the landing page, persist it in a first-party cookie, and pass it into the create-session call as metadata. Stripe carries metadata onto the resulting PaymentIntent and Charge, so it survives to the webhook and to any later refund.

  • Event source: the Stripe webhook

    Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.

  • Dispatch to Salesforce

    API writes to the Lead or Contact record, or a platform event, carrying the marketing context as custom field values.

  • Reversals where they exist

    Stripe fires charge.refunded and charge.dispute.created. Both carry the original metadata, so a refund can be sent as a negative or a retraction wherever the destination supports it. Most setups never wire this and quietly overstate revenue by the refund rate.

Written guarantee

95%+ tracking accuracy

Measured against The Stripe dashboard — Payments, filtered to succeeded, for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Stripe → Salesforce questions, answered

Stripe offers a Salesforce connector; check whether its object model fits your org. Many teams instead write payment fields to Opportunities from Stripe webhooks.

Free · 30 min

Get Stripe and Salesforce joined properly

Free30 minutesNo obligation