Insights · Nov 15, 2026 · 4 min read · FAQ

Stripe payment status in your CRM: who paid, failed or cancelled

Sales and support should see who paid, whose payment failed and who cancelled. The Stripe events to use, how to match contacts and what to write.

STRIPE TO CRMWho paid, failed, cancelled SELLWRIGHT

A salesperson chases a renewal the customer paid yesterday. Support learns a card failed when the customer emails. Stripe knew both times; the CRM didn't. The fix is a sync that writes payment status onto the contact, company or deal from a short list of Stripe events.

Which Stripe events should update the CRM?

Only those that answer paid, failed, cancelled or reversed:

  • checkout.session.completed: a Checkout Session completed, including one from a Payment Link. Check payment_status, because delayed methods such as bank debits confirm later through the checkout.session events ending in async_payment_succeeded or async_payment_failed.
  • invoice.paid: an invoice was paid, including each subscription renewal.
  • invoice.payment_failed: a payment attempt failed. On a renewal, the subscription moves to past_due.
  • customer.subscription.updated: plan and status changes, and a cancellation scheduled for period end.
  • customer.subscription.deleted: the subscription has ended.
  • charge.refunded, charge.dispute.created and charge.dispute.closed: refunds, including partial ones, and disputes.

How do you match a payment to the right contact?

Store the Stripe customer ID on the contact and match on it first, with email as the fallback. Invoices, subscriptions and charges all carry the customer ID, so once it is stored the match is exact.

Create the link at the first payment. Put the CRM record ID in the Checkout Session's client_reference_id, or add it to a Payment Link as a URL parameter of the same name; it comes back in checkout.session.completed. Then save the customer ID on the contact, and the CRM ID in the Stripe customer's metadata, which Stripe suggests for your own system's identifier.

Email still matters: in payment mode, Checkout only creates a Stripe customer when customer_creation is always or post-purchase invoices are on, so a one-off payment can arrive with no customer ID, only an email in customer_details. Match that email, normalised, with update-or-create, as in why the same lead appears twice.

What should the CRM record show?

The current state a salesperson acts on, not a transaction log. We overwrite these fields on every event:

  • Payment status: paid, failed, refunded or disputed, with the date it changed.
  • Subscription status as Stripe names it (active, past_due, unpaid, canceled), plus a cancels-at-period-end flag. Stripe advises reading the subscription after invoice.paid, because a paid invoice doesn't always make it active.
  • Plan, from the subscription item's price or product.
  • Last amount and currency. Stripe sends integers in the smallest unit: 4900 is 49.00 USD, but zero-decimal currencies such as JPY need no division.
  • Renewal date: current_period_end, on each subscription item since API version 2025-03-31.basil, in Unix seconds.
  • For an open invoice, its hosted_invoice_url, so support can resend it.

Never copy card numbers or security codes. Stripe never puts sensitive information in a webhook event, so the risk is someone typing card details into a note during a call.

Which tool should run the sync?

The one that covers your events with the least to maintain.

  • HubSpot: connecting Stripe as a payment processor covers payments taken through HubSpot's own tools, such as invoices, quotes and payment links; HubSpot payments is the built-in alternative. For payments taken elsewhere, the Stripe data sync app syncs customers with contacts both ways and brings in invoices, products, subscriptions and payment transactions, the last two as custom objects.
  • Zapier: Stripe triggers include Checkout Session Completed, Invoice Payment Failed, Updated Subscription, Canceled Subscription, New Refund and New Dispute, and Find Customer searches by Stripe ID or email.
  • Make: one instant trigger, Watch Events, which registers the webhook in Stripe when you save the module, plus Search Customers for lookups.
  • Your own endpoint: when one event updates several records or the logic outgrows a canvas.

How should refunds and disputes change the record?

They should overwrite paid, because both take back money the team thinks is in.

  • charge.refunded fires for full and partial refunds. The charge's refunded field is true only for a full refund, so compare amount_refunded with amount.
  • charge.dispute.created: flag the record and alert the owner, so nobody pitches an upgrade to a customer disputing a charge.
  • charge.dispute.closed: write the outcome, won, lost or warning_closed.

How do you test it before going live?

In a Stripe sandbox, in two passes: the CLI checks each handler, then test checkouts check the matching.

stripe listen --forward-to localhost:3000/api/stripe/webhook
stripe trigger invoice.payment_failed
stripe trigger customer.subscription.deleted
stripe trigger charge.dispute.created

stripe trigger creates fresh test objects, so its events belong to customers your CRM has never seen. For the second pass:

  1. Pay through your real Checkout with card 4242 4242 4242 4242 and a CRM test contact's email. That contact should update, not duplicate.
  2. Make 4000 0000 0000 0341 a customer's default card, add a short trial and let it end: the charge fails and invoice.payment_failed arrives.
  3. Refund a payment in the Dashboard, then pay with 4000 0000 0000 0259 to create a dispute.
  4. Use a test clock to run a renewal and a period-end cancellation without waiting.

Run every scenario twice. The CRM should still hold one contact with one current status.

Where to start

List the payment questions sales and support ask each week, then map each to one event and one CRM field. Our automation and integrations service builds and documents these syncs. If you build your own endpoint, follow reliable webhooks, because events can arrive twice and out of order.

FAQ

Frequently asked questions

Does a failed payment mean the customer has cancelled?

No. A failed renewal moves the subscription to past_due, and Stripe may retry depending on your settings. When retries run out, your subscription settings decide whether it becomes canceled or unpaid, or stays past_due. Show payment failed on the record, and mark the customer as cancelled only when customer.subscription.deleted arrives.

Is it safe to keep the last four digits of a card in the CRM?

Stripe says the card type, the last four digits and the expiry date aren't subject to PCI compliance, so storing them is allowed. We still leave them in Stripe: sales rarely needs them, and support can open the customer in the Dashboard. Full card numbers and security codes never belong in a CRM, notes included.

Why does one customer have several Stripe customer IDs?

Usually because each checkout created a new one. In subscription mode, Checkout creates a new customer unless you pass an existing one when you create the session. Pass the stored ID for returning customers, and where duplicates already exist, keep every ID on the contact so events from each one still match.

Can we fill in payment status for customers we already have?

Yes, with a one-off backfill. Stripe's API lists events only from the last 30 days, so read the current objects instead: list subscriptions and recent invoices, then send each through the same update-or-create logic the live sync uses. Run it once before you switch the live sync on, then let events keep it current.

Should payment status sit on the contact, the company or the deal?

Put it where your team looks first. For business accounts we write subscription status to the company, with the paying contact linked, and one-off payments to the deal they close. Whatever you choose, write each field in one place only, so two records never disagree about whether a customer has paid.

Should we test in Stripe test mode or a sandbox?

For a new integration, a sandbox. Stripe recommends general sandboxes over the test mode sandbox for new work, with separate sandboxes for local development and CI so automated tests don't touch your settings or data. Payments there aren't processed by card networks, and Stripe's terms prohibit testing in live mode with real card details.

Next step

Ready for a website that sells?

Book a short call. We will look at your current site, agree what matters most and send a written scope with a fixed quote.

Book a callOr write to hello@sellwrightstudio.com