Connecting PayPal to Salesforce
PayPal holds the settled transaction, and it is frequently the payment method that reports worst. 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 PayPal transaction 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
PayPal payments in Salesforce: close the Opportunity on capture
Put the Salesforce Opportunity ID or a linked order reference in the PayPal invoice or order. When the capture webhook fires, set that Opportunity to Closed Won at the captured amount and store the capture ID. Lead-time gclid or fbclid carried through conversion lets closed revenue return to ad platforms; refunds and disputes reopen or adjust it.
PayPal belongs in Salesforce when payment is the step that turns a deal into revenue. Typical cases are a deposit, an invoice sent after a sales call, or a course or service sold by a rep. Then the sane setup is narrow. Put the Salesforce Opportunity ID, or your own order reference tied to it, into the PayPal invoice or order. When the capture completes, update that Opportunity to Closed Won at the captured amount. The PayPal capture ID goes on the Opportunity so finance can reconcile it later.
If you use PayPal Invoicing, check whether the invoice-paid webhook carries the reference you need, or whether you have to look the invoice up. Integrations that only watch the buyer's return page will miss PayPal payments here as they do anywhere. The capture webhook is the dependable trigger.
Once payment closes the Opportunity, the ad side can follow. The gclid or fbclid written onto the Lead at form time and mapped through conversion lets the closed-won amount go back to the ad platforms. Wire refund and dispute webhooks to reopen or adjust the Opportunity, so a charged-back deal doesn't stay counted as won.
PayPal → Salesforce · what breaks
Why this join usually fails — PayPal → Salesforce
- 01
The Lead or Contact identity never reaches PayPal
The classic PayPal flow bounces the buyer to paypal.com and back. If the buyer abandons the return, your site never runs the thank-you page and never fires anything, but PayPal has already taken the money. This is why PayPal-heavy stores routinely under-report: the sale is real and the tracking event does not exist.
- 02
The buyer never comes back from PayPal
Money moves, the confirmation page never loads, and the conversion is invisible. It is the single biggest reason PayPal-heavy stores see paid channels look worse than they are.
- 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.
- 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.
PayPal → Salesforce · the fix
What working looks like — PayPal → Salesforce
The Lead or Contact identity on every transaction
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
PayPal → Salesforce · architecture
How PayPal and Salesforce actually connect
- 1
PayPal holds the truth
The transaction record carries the amount, currency and a transaction ID. It is also the record that survives when the buyer is redirected out to PayPal and never returns to your confirmation page.
- 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
The identifier is the bridge
The Lead or Contact identity, captured at the visit and carried into the PayPal transaction.
- 4
The event source decides reliability
Listen for PAYMENT.CAPTURE.COMPLETED and send from your server. Firing on the return URL loses every buyer who closes the tab at PayPal, which is a much larger share than most merchants expect.
- 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.
PayPal → Salesforce · normal or broken
Working vs. broken, side by side — PayPal → Salesforce
Normal, not a fault
The Lead or Contact identity present on the transaction
Sent from the PayPal webhook (or your order record when the IPN lands)
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
The classic PayPal flow bounces the buyer to paypal.com and back. If the buyer abandons the return, your site never runs the thank-you page and never fires anything, but PayPal has already taken the money. This is why PayPal-heavy stores routinely under-report: the sale is real and the tracking event does not exist.
Sent from the browser
Money moves, the confirmation page never loads, and the conversion is invisible. It is the single biggest reason PayPal-heavy stores see paid channels look worse than they are.
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
PayPal → Salesforce · diagnose
Diagnostic order — PayPal → Salesforce
- 01
Count transactions carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 03
Compare completed PayPal transactions against confirmation-page loads
For the same day. The gap between the two is the share of PayPal revenue your browser-side setup is structurally unable to see.
- 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.
- 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.
PayPal → Salesforce · prove
How it gets proven — PayPal → Salesforce
Source of truth
PayPal's Activity report, filtered to completed payments for the same window.
- The Lead or Contact identity confirmed present on a live transaction.
- A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
- A PayPal order where the buyer never returned to the site, confirmed to have reported anyway.
PayPal → Salesforce · free audit
What we check in the free audit
- Count transactions carrying the Lead or Contact identity
- Follow one real conversion end to end
- Compare completed PayPal transactions against confirmation-page loads
- Write a test value and open the record in the UI
- Read the match rate, not the success message
Checked against
PayPal's Activity report, filtered to completed payments for the same window.
Free30 minutesNo obligation
PayPal → Salesforce · when not to buy
When you don't need this — PayPal → Salesforce
- Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the Lead or Contact identity.
- If PayPal is under a few percent of your orders, fixing the whole flow may not move a decision. Measure the share first.
- 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.
PayPal → Salesforce · what we deliver
What gets built — PayPal → Salesforce
Identifier capture into PayPal
Capture the click identifier before checkout and store it against the order in your own database, keyed by the PayPal order ID. PayPal's own custom_id / invoice_id fields can carry your order reference so the two records can always be re-joined server-side.
Event source: the PayPal webhook (or your order record when the IPN lands)
Listen for PAYMENT.CAPTURE.COMPLETED and send from your server. Firing on the return URL loses every buyer who closes the tab at PayPal, which is a much larger share than most merchants expect.
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
PAYMENT.CAPTURE.REFUNDED and the dispute webhooks exist and carry the same reference, so reversals can be wired properly.
Written guarantee
95%+ tracking accuracy
Measured against PayPal's Activity report, filtered to completed payments for the same window.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
PayPal → Salesforce questions, answered
Yes, if the PayPal order or invoice carries a reference to the Opportunity. Your server can update the stage when the capture webhook arrives.
Pass the Opportunity ID or your order reference in PayPal's custom_id or invoice_id, then match on it when the PayPal webhook fires.
Almost always because the Lead or Contact identity never reached the PayPal transaction. The classic PayPal flow bounces the buyer to paypal.com and back. If the buyer abandons the return, your site never runs the thank-you page and never fires anything, but PayPal has already taken the money. This is why PayPal-heavy stores routinely under-report: the sale is real and the tracking event does not exist. Measure coverage before debugging the dispatch.
Salesforce resolves on its own record identity — a Lead, a Contact, or an Account — rather than on a click identifier. What you are doing here is attaching marketing context to a record so the pipeline carries it, which means the click identifier arrives as a custom field value rather than as a matching key. The hazard is duplicates: two Leads for one person means two records with half the history each.
The PayPal webhook (or your order record when the IPN lands). Listen for PAYMENT.CAPTURE.COMPLETED and send from your server. Firing on the return URL loses every buyer who closes the tab at PayPal, which is a much larger share than most merchants expect.
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.
More on PayPal → Salesforce
- PayPal → Marketing CloudConnecting PayPal to Salesforce Marketing Cloud
- PayPal → GA4Connecting PayPal to GA4
- Salesforce → Google AdsConnecting Salesforce to Google Ads
Using PayPal for bookings? How PayPal bookings get tracked end to end
RELATED GUIDES
Where PayPal → Salesforce fits in the rest of your tracking
- Stripe → SalesforceConnecting Stripe to Salesforce
- Stripe Billing → SalesforceConnecting Stripe Billing to Salesforce
- PayPal → HubSpotConnecting PayPal to HubSpot
- PayPal → 6senseConnecting PayPal to 6sense
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- Stripe → HubSpotConnecting Stripe to HubSpot
- Stripe → MarketoConnecting Stripe to Marketo
- Stripe Billing → HubSpotConnecting Stripe Billing to HubSpot
Free · 30 min
Get PayPal and Salesforce joined properly
Free30 minutesNo obligation
