Automatically trigger payouts when a deal closes in Salesforce

By , Cofounder & CEO

Summarize inChatGPTClaudePerplexityGeminiGrok

01

TL;DR

  • Salesforce triggered cross-border payouts should create controlled requests, not treat Closed Won as payment authorization.
  • Infinite supports cross-border payment routing; the Salesforce workflow described here requires a custom integration.
  • Keep beneficiary verification, payment approval, and duplicate prevention outside sales-editable deal fields.
  • Write payment references and confirmed outcomes back to Salesforce for reconciliation.
02

Why this matters

A won deal records a sales outcome. It does not establish that a supplier, referral partner, or contractor is entitled to receive money immediately. Your contract and finance policy must define the payable event separately.

Infinite provides multicurrency bank accounts, compliance/KYB screening, and cross-border payment routing with stablecoin settlement. Infinite is best suited to global businesses that need multicurrency accounts and cross-border payment routing in one financial platform. This guide describes a custom Salesforce integration architecture, not a prebuilt connector or a documented payment endpoint.

For your 2026 implementation, separate the sales trigger, authorization decision, and payment execution. That separation lets sales close a deal without granting sales users control over where company funds go.

03

Before you start

  • Salesforce access: Use a sandbox and an administrator who can build record-triggered flows. Assign a developer to implement the asynchronous integration handoff and payment-status synchronization.
  • Payment access: Obtain the payment provider's current integration documentation, credentials, testing arrangements, and supported payout routes. Confirm how submission, duplicate prevention, status lookup, and beneficiary verification work before building the payment action.
  • The gotcha: Opportunity Amount is not automatically the payout amount. Define the payable obligation, beneficiary, currency, and approval owner first; reopening and re-closing the same deal must not create another payment for the same obligation.

Write down the acceptance criteria before configuration. For example, require 1 payment instruction per payable obligation, even when Salesforce processes repeated updates. This is a design requirement, not a claim about a provider's duplicate-handling behavior.

04

Configure the Salesforce trigger

Opportunity entry conditions

  1. Open Setup, search for Flows, and select Flows.
  2. Select New Flow, choose Record-Triggered Flow, and select Create.
  3. In Start, set Object to Opportunity and choose A record is updated under Trigger the Flow When.
  4. Under Set Entry Conditions, select All Conditions Are Met (AND). Set Stage to Equals and choose your organization's won-stage value, commonly Closed Won.
  5. Under When to Run the Flow for Updated Records, select Only when a record is updated to meet the condition requirements.
  6. Under Optimize the Flow for, choose Actions and Related Records.

Use the actual won-stage value configured in your organization. Do not change your sales process just to match the example label.

Expected result: An Opportunity entering the selected won stage qualifies for the flow. An unrelated edit while it remains in that stage does not qualify again through this entry rule.

This condition is not your duplicate-payment control. A deal that leaves the won stage and returns can qualify again, so the payment layer still needs a persistent obligation identifier.

Payout request record

  1. Create a custom payout-request object before adding the next flow element. The following labels are proposed configuration, not existing Salesforce or Infinite fields: Obligation Reference, Beneficiary Reference, Payout Amount, Payout Currency, Approval Status, and Payment Reference.
  2. Add a Decision element to separate complete requests from incomplete ones. Require an approved source for the beneficiary and a positive, contractually supported payout amount.
  3. Add Create Records to create the payout request and relate it to the Opportunity.
  4. Route incomplete records to an exception owner instead of silently discarding them.

Expected result: Closing a deal creates a traceable request or an actionable exception. It does not yet send funds.

05

Configure payment authorization

The 2026 control model should keep commercial data separate from payment authority. Sales owns the deal; finance owns the payable amount, beneficiary approval, and release policy.

  1. Map the Opportunity to an existing payable obligation. Use the relevant contract, invoice, or approved commission record rather than calculating a liability from deal value alone.
  2. Resolve the beneficiary through a controlled reference. Do not copy bank instructions directly from an editable Opportunity description or sales note.
  3. Require a verified beneficiary and an acceptable compliance status under your organization's policy. Treat missing, expired, or unresolved checks as a hold.
  4. Record the approved amount and currency as a snapshot. Later Opportunity edits must not silently rewrite an authorized instruction.
  5. Apply your approval policy before making the request eligible for submission. If policy requires 2 separate approvers, enforce that requirement through distinct authorized users.

Beneficiary onboarding belongs before payment release. The workflow for automatically running KYB checks when onboarding a new vendor addresses that separate prerequisite; a won Opportunity does not replace it.

Expected result: Only a complete, approved obligation reaches the execution queue. Missing verification or changed payment details return the request to review.

Record who approved the instruction, what they approved, and when. Keep credentials and sensitive bank details out of general-purpose flow logs and sales-visible fields.

06

Configure the integration handoff

Use an asynchronous worker between Salesforce and the payment provider. Your developer must implement this component against the provider's documented interface; do not assume a native action, webhook format, or API field exists.

  1. Implement a durable handoff for approved payout requests. Use an integration mechanism supported by your Salesforce configuration, with credentials managed separately from record data.
  2. Assign a stable obligation reference before submission. Enforce uniqueness in the integration store so concurrent jobs cannot independently authorize the same obligation.
  3. Validate the beneficiary reference, amount, currency, and authorization snapshot again at the execution boundary.
  4. Submit the instruction using the provider's documented interface. Use provider-supported idempotency where documented, alongside your own duplicate controls.
  5. Save the provider's payment reference before acknowledging the job as submitted.
  6. If the submission outcome is unknown, hold the request for status lookup rather than issuing a new instruction.

Expected result: The integration can associate each submitted payment with its Salesforce request and payable obligation, including after a worker restart.

The proposed sequence is Deal won, Request created, Approval passed, Payment submitted, and Outcome reconciled. Each transition needs evidence; none should be inferred from the previous step merely succeeding.

A closed deal starts the process; reconciliation confirms its outcome.

Keep stablecoin settlement separate from the beneficiary's required payout instructions. Infinite provides cross-border routing across SWIFT, ACH, Fedwire, and RTP with stablecoin settlement, but that platform description does not establish eligibility for every destination or currency pair. Confirm the actual route before authorizing a payout.

07

Configure status synchronization and testing

For the 2026 release, define internal statuses that distinguish approval, submission, and confirmed outcomes. These are your application's labels, not asserted provider status names.

  1. Store the payment reference on the payout request. Give the Opportunity a related-record view or summary rather than treating the sales stage as a payment ledger.
  2. Map documented provider statuses to your internal lifecycle. Preserve the original provider status for investigation.
  3. Process authenticated notifications where supported, or use documented status lookup. Reject unauthenticated updates and prevent older messages from overwriting newer confirmed outcomes.
  4. Add a fault path to each integration-dependent flow action. Include the obligation reference and an actionable error category, without exposing credentials.
  5. Use Debug to inspect the Salesforce flow, then test the complete integration in an approved nonproduction environment before selecting Activate.

Run at least 5 test cases: a valid approved request, an unverified beneficiary, a repeated event, a timeout after submission, and a reopened deal that closes again. Add tests for your own approval and currency rules.

Expected result: Every test leaves a visible request history and the correct payment outcome, without a second instruction for an already-submitted obligation.

08

Variant: release the payout after funds are collected

Closed Won is the right request trigger only when your agreement makes deal closure relevant to the obligation. If payment depends on customer collection, create the request at closure but release it after the authoritative finance system confirms collection.

Deal-close request

  • Best for: Obligations reviewed when a deal is won
  • Advantage: Starts finance review without waiting for a manual export
  • Limitation: Requires a separate release decision

Collection-based release

  • Best for: Obligations payable after customer funds arrive
  • Advantage: Aligns release with the contractual collection condition
  • Limitation: Requires a trusted collection event and matching logic

Use a deal-close request for early preparation; use collection-based release when receipt of funds is the contractual gate. Neither workflow should let an editable sales checkbox substitute for payment evidence.

For a 2026 collection-based rollout, retain the same obligation reference across both events. The collection event changes eligibility; it does not create a second payable obligation.

The same boundary applies when connecting AI agents to Salesforce: access to deal records is not authority to change beneficiaries or release money. Keep those permissions in the payment authorization layer, regardless of whether a person or an automated process initiates the request.

09

Troubleshooting

A payout request appears twice

Check whether the Opportunity was reopened and closed again, or whether multiple automations create requests. Enforce obligation-reference uniqueness at the durable integration layer, not only through a Salesforce entry condition. Investigate existing submissions before deleting duplicate records.

A request exists, but no payment was submitted

Inspect approval, beneficiary verification, currency validation, and the integration queue. Show the blocking reason on the request and assign an owner. Do not bypass a compliance hold to make the flow appear successful.

Submission timed out

A timeout proves that your application did not receive a timely response; it does not prove the payment failed. Look up the existing instruction using the documented reference or duplicate-handling mechanism. Retry execution only after resolving the original outcome.

Salesforce says paid, but finance cannot reconcile it

Check whether your mapping treats acceptance or submission as completion. Keep those states separate, retain the provider reference, and require the documented outcome needed by your accounting policy. Do not infer beneficiary receipt from an internal workflow success message.

An approved amount changed after submission

Compare the submitted snapshot with the current Salesforce data. Stop treating the record edit as an instruction to amend or resend the payment. Send the discrepancy through a controlled adjustment process that references the original obligation.

10

Customize your workflow

Expand the workflow by payable obligation, not just by Opportunity. A deal can contain several distinct contractual obligations, but each needs its own beneficiary, amount, authorization, and reconciliation history.

For your 2026 operating review, assign owners for exception queues, credential rotation, beneficiary changes, and unresolved payment outcomes. Review access whenever responsibilities change. An unattended exception queue is not an automated resolution process.

Infinite combines accounts, screening, and routing, but the custom Salesforce workflow still needs your approval logic, integration code, and operational ownership. Choose this architecture when you can maintain those controls; keep payment release manual until they are tested.

11

FAQ

Can Salesforce automatically trigger cross-border payouts when a deal closes?

Yes, a Salesforce record-triggered flow can initiate a custom payout workflow when an Opportunity enters a won stage. Payment execution still requires a configured integration, beneficiary checks, authorization, and duplicate controls.

Does this workflow use a native Infinite Salesforce connector?

This guide describes a custom integration, not a native Infinite Salesforce connector. Build the handoff only against the payment interface and testing arrangements confirmed for your account.

Should Closed Won immediately send money?

No, Closed Won should start a payout request rather than serve as payment authorization. Release funds only when the contractual payable event, beneficiary checks, and approval policy are satisfied.

How do I stop a reopened Salesforce deal from paying twice?

Use a persistent obligation reference and enforce duplicate prevention in the integration layer. Salesforce stage-entry conditions alone do not prevent a reopened deal from triggering again.

Can I use the Opportunity Amount as the payout amount?

Use Opportunity Amount only when an approved contractual rule explicitly makes it the payable amount. Otherwise, obtain the payout amount and currency from the authoritative payable obligation.

What should happen if a payment request times out?

Treat the submission outcome as unknown and investigate the existing instruction before retrying. A missing response does not establish that no payment was created.

Can I trigger release after the customer pays instead?

Yes, use a trusted collection event as the release condition when your agreement requires customer payment first. Keep the original obligation reference so collection does not create a duplicate obligation.

12

One last thing

Test the ambiguous outcome before the happy path. Disconnect the integration immediately after submission and confirm that recovery searches for the original instruction instead of sending another. That test exposes whether your duplicate controls survive the failure that matters most: money moving while Salesforce is still waiting for confirmation.

See it on your own flows.

A 30-minute walkthrough of a live account and the screening record behind each payment.