Sync PayPal transactions to Salesforce contacts
Developer ToolAPI IntegrationRecipe ToolsCRMMarketing
What it does
When a new payment arrives via HTTP webhook, this automation checks the transaction type and stops if it is a chargeback, adjustment, or case. For other transactions, it looks up the country code and searches Salesforce for a matching contact to update.
Who it's for
Finance teams who need to sync PayPal payment data into Salesforce without manual entry.
How teams use this
Sync PayPal payments to customer records
Route valid PayPal transactions into Salesforce so customer payment history is current without manual data entry. The contact record stays in sync with each new payment.
Block disputed transactions from syncing
Stop chargebacks and adjustments before they reach Salesforce so only legitimate payments update the contact. Disputed transactions are filtered out automatically.
Add account-level sync for multi-contact deals
Extend the lookup to also search and update the Salesforce account record so both contact and company data reflect the PayPal transaction. Include account ID in the lookup table.
Route transactions by payment method
Filter transactions by payment method before lookup so credit card payments sync to one contact field and bank transfers to another. Only set the country code for specific payment types.
How it works
- Receive a new payment webhook. A new payment event arrives in real time via HTTP webhook with transaction details including type and customer information.
- Filter out chargebacks and adjustments. Check if the transaction type contains chargeback, adjustment, or new_case. Stop the automation if any match, otherwise continue.
- Look up the country code. Search the PaypalCountry lookup table to find the country code that matches the transaction data for use in Salesforce.
- Find the contact in Salesforce. Search Salesforce in batch mode for a contact record that matches the customer from the PayPal transaction details.
- Update the contact record. Update the matching Salesforce contact with the country code and other transaction details from the PayPal payment.