Skip to documentation content

Set up Stripe

Follow the dashboard's four-step Stripe setup: configure webhook payment events, connect invoice data, create a server key, and confirm a captured payment from signed Stripe webhooks.

On this page

1. Configure webhook payment events

Select the merchant and Carden environment used by checkout. Open Integrations > Stripe. If Stripe is not configured yet, select Set up Stripe. The Setup page then shows the four steps below; the previews are illustrative, not connected to your account.

  1. From Stripe > Setup, select Create webhook endpoint under Connect Stripe payment events.
  2. Copy the endpoint URL Carden provides.
  3. Open your Stripe Dashboard, go to Workbench → Webhooks (or Developers → Webhooks), and add the endpoint in the matching Stripe mode. Use snapshot events rather than thin events; Carden has no Stripe API credential to retrieve a thin event.
  4. Select these events: payment_intent.succeeded, payment_intent.payment_failed, payment_intent.canceled, charge.succeeded, charge.failed, charge.captured, charge.updated, charge.refunded, refund.created, refund.updated, refund.failed, charge.dispute.created, charge.dispute.updated, charge.dispute.closed, charge.dispute.funds_withdrawn, charge.dispute.funds_reinstated.
  5. After creating the endpoint in Stripe, copy its signing secret and paste it into Carden.
StripeSetup
Dashboard preview

Connect Stripe payment events

Awaiting secret

Create a Carden endpoint, then add its URL in Stripe Dashboard in the matching Stripe mode. No Stripe OAuth authorization or API key is required.

Select these events in Stripe:

  • payment_intent.succeeded
  • payment_intent.payment_failed
  • payment_intent.canceled
  • charge.succeeded
  • charge.failed
  • charge.captured
  • charge.updated
  • charge.refunded
  • refund.created
  • refund.updated
  • refund.failed
  • charge.dispute.created
  • charge.dispute.updated
  • charge.dispute.closed
  • charge.dispute.funds_withdrawn
  • charge.dispute.funds_reinstated

Create webhook endpoint

In Stripe > Setup, select Create webhook endpoint. Carden generates a unique URL for this integration. You configure it in your Stripe Dashboard.

Illustrative only. Complete these actions in your Carden dashboard.

After saving the signing secret, send a test delivery from the configured Stripe endpoint. Setup checks status automatically while awaiting the first event; select Refresh webhook status to check manually. The step shows Delivery verified after signature verification succeeds. A signed failed-payment, refund, or dispute event can verify delivery without confirming a captured payment.

StripeSetup
Dashboard preview

Connect Stripe payment events

Delivery verified
Events received
1
Captured payments confirmed
0
Last event
2026-10-02 20:00 UTC

A signed failed-payment event verifies delivery without confirming a captured payment. Neither delivery nor payment confirmation proves network qualification, settlement costs, or verified savings.

Recent events

payment_intent.payment_failed · processed

Delivery verified

This example shows one signed event and zero captured payments. Delivery verification and payment confirmation have separate counters.

Illustrative only. Complete these actions in your Carden dashboard.

To rotate a signing secret, rotate it in Stripe, select Update signing secret in Carden, and save the current endpoint secret. Saving resets delivery verification until another signed event arrives. Select Disable webhook endpoint to stop accepting deliveries, and disable or remove the endpoint in Stripe too. Create replacement endpoint generates a new URL; the old endpoint stays disabled. Configure the replacement in Stripe and save its own signing secret.

Webhook events provide payment confirmation, card classification, refunds (with Stripe's reason and failure reason), and disputes (opened, under review, won, lost, closed, and funds withdrawn or reinstated). They do not include historical charges, balance transactions, or itemized fee reports.

To record settlement and fee evidence, connect a restricted read-only key under Settlement and fee evidence: in Stripe Dashboard open Developers → API keys → Create restricted key, grant only Charges: Read and Balance: Read, and paste the rk_test_ or rk_live_ key matching this workspace. Carden verifies both permissions with Stripe before encrypting the key and never returns it. The scheduled sync then pages charges with their balance transactions, backfills card details, refunds, and disputes for payments seen before the webhook existed, and writes gross, fee, net, and availability date per settlement plus every itemized fee line. Select Sync now to queue a run immediately, Rotate key after rotating it in Stripe, or Disconnect key to stop scheduling; recorded evidence is kept. Secret keys (sk_) are refused.

2. Connect invoice data

  1. Return to Stripe > Setup and select Connect QuickBooks under Connect invoice data, or open Invoices and select Connect QuickBooks.
  2. On the QuickBooks connection page, select Continue to QuickBooks, sign in with Intuit, and choose the correct company in the same merchant and Carden environment.
  3. Let the initial import complete. Carden imports invoices and links new QuickBooks connections to Stripe automatically.
  4. Return to Stripe and confirm that Connect invoice data or QuickBooks invoice data shows Ready. Review only factual invoice and item-mapping exceptions.
StripeInvoices
Dashboard preview

QuickBooks invoice data

Carden imports invoices automatically after authorization.

Not connected

Connect QuickBooks once. Carden will import invoices and link them to this Stripe setup automatically.

Select Connect QuickBooks

Connect the invoice source once. After authorization and import, the invoice-source badge changes to Ready when the source is connected and linked to Stripe.

Illustrative only. Complete these actions in your Carden dashboard.

Linking a source never changes existing keys. Inline CanonicalInvoice preparation and optional reporting-only APIs remain available without QuickBooks access.

3. Create a server key

  1. From Stripe > Setup, select Create API key under Create a server key, or open API keys.
  2. Enter a Key name and an optional expiry. New Stripe keys include all currently available scopes. For least privilege, open Restrict scopes (optional) and select enrichment:write and invoices:read for linked-invoice enrichment; leave payments:write unchecked if you do not submit optional observations. The invoices:read option requires a linked source and permission to link it.
  3. Select Create API key. In the API key created dialog, select Copy secret and store it in your server's secret manager; it is shown only once.
StripeAPI keys
Dashboard preview

Server-only Carden keys. Keys authorize this integration and environment only. Do not enter a Stripe credential here.

All available scopes are enabled by default.

This example uses a linked invoice source. Copy the secret after creating the key and store it in your server's secret manager.

Restrict scopes (optional)
Key scopes

Create the Carden key for your backend

For a linked invoice, enrichment:write and invoices:read are available after linking the source. New keys default to all available scopes; use Restrict scopes (optional) to remove payments:write when optional observations are unused. Select Create API key, then copy the secret.

Illustrative only. Complete these actions in your Carden dashboard.

UseRequired Carden scopes
Linked-invoice enrichmentinvoices:read + enrichment:write
Inline enrichmentenrichment:write
Optional existing observation integrationpayments:write; not needed for connected Stripe confirmation

Store the key in server-only configuration, never browser code. Create and deploy a replacement, confirm preparation works, then revoke the old key. Keep the merchant's Stripe secret in its existing backend. Carden's webhook setup requires the endpoint signing secret, not your Stripe API secret or OAuth authorization.

4. Send a test payment

Your developer now adds Carden to the backend that already creates Stripe payments. Creating a key alone does not send invoice fields to Stripe.

  • Use automatic preparation for one source-trusted, fully unpaid invoice with a stable preparation idempotency key.
  • Branch on mode: add enrichment only when enhanced; ordinary sends no enhanced fields and has no verified optimization savings or Carden fee. Include carden_preparation_id metadata in both modes.
  • Keep Stripe's current confirmation and capture behavior unchanged.
  • In Stripe > Setup, confirm Delivery verified under Connect Stripe payment events. Complete a real test-mode capture using your existing checkout and wait for its signed webhook delivery.
  • Review Preparations and Captured payments confirmed under Send a test payment. The Captured payment confirmed badge requires actual captured payment evidence; delivery verification alone never completes this step. Inspect the specific Stripe payment when totals are ambiguous.
  • Test denied scope, source validation, ambiguous Stripe responses, captures, and refunds independently of qualification or savings claims.
StripeSetup
Dashboard preview

Send a test payment

Captured payment confirmed

Add the prepared fields directly to your existing Stripe request. Carden stores the preparation and confirms captured payments from signed Stripe webhook events.

Preparations
1
Captured payments confirmed
1

Example counts after preparation and a captured payment webhook. Delivery verified alone does not confirm capture; payment confirmation does not establish qualification or verified savings.

Check preparation and captured payment activity

These example counts show one preparation and one captured payment confirmed from signed Stripe events. Preparations and delivery verification alone do not confirm capture. Neither count proves qualification or savings.

Illustrative only. Complete these actions in your Carden dashboard.

Call the versioned HTTP preparation API from your backend with any HTTP client. Connected Stripe confirmation does not require a separate merchant payment-report queue.