Integration guideProfessional firms

Stripe to client onboarding: start work only on a verified payment event, not a redirect

Start onboarding from verified Stripe events: native payment tools first, Checkout and invoice events, field map, delayed ACH, refunds and the tests to run.

Check your practice platform’s payments first

Accounting firms on TaxDome, Karbon or Canopy can usually take payment inside the platform and move a job forward when an invoice is paid, with no webhook to maintain. Ignition ties a signed proposal to payment collection and pushes the new client into several practice tools. Configure those before building on Stripe directly.

Law firms have an extra constraint. Retainers that must be held in trust belong in a payment processor built for legal trust accounting, such as LawPay or Clio Payments, which keep earned and unearned funds separate and avoid taking processing fees out of the trust account. Use Stripe only for payments your state rules allow into operating, such as earned fees, and have that decision approved by the responsible partner.

Where Stripe is the right processor, the handoff below starts onboarding only when Stripe itself reports the payment, never because a browser landed on a thank-you page.

The integration contract

Item Decision
Payment object A Checkout Session (or Payment Link) created with client_reference_id set to the firm’s engagement ID, or a Stripe Invoice for billed engagements
Proof of payment A signed webhook event, followed by a server-side read of the session or invoice
Output The engagement moves to “Payment received” and the onboarding checklist is created for a staff owner
Not proof The success_url redirect, a customer email saying “I paid”, or a client-side callback
Owner Billing lead owns the handler and reconciliation; engagement partner owns the start decision for anything unusual

The Stripe events that matter

Event Meaning for onboarding Action
checkout.session.completed Checkout finished; payment may be paid or still pending Read payment_status: paid starts onboarding; unpaid waits
checkout.session.async_payment_succeeded A delayed method such as ACH debit cleared Start onboarding
checkout.session.async_payment_failed The delayed payment failed Task to billing to contact the client; no onboarding
invoice.paid A Stripe Invoice was paid in full Start onboarding for invoice-billed engagements
invoice.payment_failed An invoice payment attempt failed Billing follow-up; onboarding stays on hold
charge.refunded or charge.dispute.created Money returned or contested after onboarding may have begun Pause the checklist and alert the engagement partner

Field mapping

Stripe field Firm field Rule
event.id processed_event_id Stored; an event ID seen before is acknowledged and skipped
checkout_session.id payment_ref Fulfillment keyed on this ID so concurrent calls cannot start onboarding twice
checkout_session.client_reference_id engagement_id Required; a session without it goes to manual review
checkout_session.payment_status payment_state paid, unpaid or no_payment_required; only paid starts work
checkout_session.amount_total and currency amount_received_cents Integer minor units compared with the engagement’s expected amount
checkout_session.customer_details.email payer_email Shown to staff for confirmation; never used to find the engagement
invoice.id and invoice.metadata.engagement_id invoice_ref, engagement_id Metadata set when the invoice is created
event.livemode environment Test-mode events are never processed by the production handler

How the handler behaves

  • Verify the Stripe-Signature header with the endpoint’s whsec_ signing secret against the raw request body; reject anything that fails. Stripe’s libraries default to a five-minute timestamp tolerance.
  • Return a 2xx response quickly, then process from a queue. Stripe retries failed deliveries in live mode for up to three days.
  • Do not assume order. Stripe does not guarantee events arrive in sequence, so re-read the session or invoice from the API before acting.
  • If you also run fulfillment from the success page for speed, call the same idempotent function; the webhook remains the guarantee.

Failure and recovery

Failure Symptom Recovery
ACH payment pending for days Client paid but onboarding has not started Status “Payment processing” visible to staff; onboarding waits for async_payment_succeeded
Same event delivered twice Two checklists or two welcome emails Dedupe on event ID and on session ID
Amount differs from the engagement Partial or wrong-price payment Hold onboarding; billing contacts the client
Signing secret rotated in the Dashboard only All events rejected Roll the secret with an overlap period and update the handler before the old one expires
Test and live keys mixed Test payments start real onboarding Separate endpoints and secrets per mode; livemode check in code
Handler down beyond the retry window Payments never reach onboarding Daily reconciliation listing paid sessions and invoices without a matching engagement update

Tests before go-live

  1. Pay a test Checkout Session with Stripe’s test card: the engagement moves to “Payment received” once, with the right engagement ID.
  2. Visit the success URL without paying: nothing changes.
  3. Resend the same event from the Dashboard or Stripe CLI: no second checklist is created.
  4. Pay with a test ACH method: the engagement shows processing, then starts only after the async success event.
  5. Refund the test payment: the checklist pauses and the partner is alerted.
  6. Post a request with a forged signature: it is rejected with a 400 and logged.

Ownership

The billing lead owns the endpoint, signing secrets, daily reconciliation and refund handling. The engagement partner decides on any onboarding started with a mismatched amount. The operations lead reviews unmatched payments weekly.

Payment and trust notes

  • Stripe-hosted Checkout keeps card numbers off firm systems, which narrows your card-data compliance scope. Confirm your PCI DSS obligations with Stripe’s guidance.
  • ABA Model Rule 1.15 and state trust-account rules govern client funds held for future fees. Card processing for trust deposits must not take fees from trust, which is why legal-specific processors exist.
  • Covered accounting firms should add Stripe to the vendor inventory in their written information security program.

This page describes an administrative process. It is not legal or tax advice; have a qualified professional review your firm’s policies.

Sources

Related guides

Payment is one step of CPA client onboarding; law firms should pair this with retainer payment confirmation routing and signing completion handoff. Match payments to invoices with invoice and payment reconciliation. Deciding whether to build this handler in-house or have it built? Read template vs. custom implementation, and track unmatched payments in Operations Desk.

Sources and application notes

Timings, workload estimates and approval limits in this guide are proposed operating settings. Adapt them to your firm; binding duties come from the applicable rules.

U.S. tax and legal examples need jurisdiction-specific review. ABA model rules apply only as adopted. Sources describe requirements or product behavior; they do not certify this workflow.

Publisher: FirmWorkflows. Report a correction with the URL and statement concerned.

Published by FirmWorkflows · Published · Updated

Keep it running

Turn this workflow into a procedure your team owns.

Operations Desk keeps every procedure, its owner and its open exceptions in one offline file, so anyone can cover for anyone. One payment, no subscription, and your client data stays on your device.

Optional · by email

Five short emails on running a calmer firm.

One practical step every two days: start from a 15-point readiness checklist, map where client data travels, measure before you promise savings, pick one workbook and plan your next process. Everything else on this site works without your email.

We send one confirmation email first, and nothing else until you confirm. Sent by FirmWorkflows through Brevo. Privacy policy.

Start with one better process

Find your firm’s
next small win.

Choose a process. Build your plan. Keep a copy.

Build your free workflow plan

Available instantly. No account or email required.