Skip to main content

Stripe: configuration

Stripe is one of the processors a merchant account can be at (Settings → Payments). It takes cards and US bank debits (ACH), keeps saved cards and bank accounts, refunds, and reports its payouts and disputes back. It cannot pay suppliers. Everything in Payments: configuration applies; this page covers what is Stripe's own.

Setting up a Stripe merchant​

  1. In Stripe, open Developers → API keys. Choose Test mode while you are trying it out.

  2. In this product, Settings → Payments → Add merchant, processor Stripe. Choose what it takes (card, ACH debit or both), its clearing account and its payout account.

  3. Paste the keys:

    KeyWhereWho sees it
    Secret key (sk_test_… / sk_live_…; a restricted rk_… key works too)Developers → API keysThe server only
    Publishable key (pk_…), same mode as the secret keySame pageThe browser, to show Stripe's fields
    Webhook signing secret (whsec_…)Developers → Webhooks, after step 5The server only

    Keys are write-only: they go to the credentials vault and are never shown again. An empty box keeps the stored key.

  4. Save, then press Test connection. It reads the account's balance with the secret key and shows Test mode or Live beside the merchant. It fails, in words, if the publishable key is from the other mode.

  5. Edit the merchant and copy its Webhook address. In Stripe, Developers → Webhooks → Add endpoint, paste it, and choose these events: payment_intent.succeeded, payment_intent.processing, payment_intent.payment_failed, payment_intent.canceled, charge.refunded, refund.updated, charge.dispute.created, charge.dispute.updated, charge.dispute.closed, payout.paid. Copy the endpoint's signing secret into the merchant (step 3).

Without the webhook, nothing breaks: bank debits are still checked by the hourly job and payouts by the daily settlement fetch. The webhook only makes them quicker.

Test mode and live​

  • The key decides the mode, not the server. sk_test_… uses Stripe's test mode: nothing moves real money.
  • A live key is refused on every server except production, so a staging installation can never charge a real card. Use test keys there.
  • Moving from test to live: paste the live secret, publishable key and the live endpoint's signing secret (a live webhook endpoint is separate in Stripe) into the same merchant, and press Test connection. Saved cards and bank accounts from test mode do not exist in live mode: customers enter them again.

What it reads​

Setting / ruleEffect at Stripe
payments.refund_approval_amountAs for every processor: a refund over it waits for a second person.
payments.webhook_rate_per_minuteStripe's notices count against it like any processor's.
payments.dispute_reminder_daysReminds about evidence due on disputes Stripe opened.
Fee posting Taken from each payoutStripe's fees in a payout post as payment fees when the payout ties.

No setting, flag or rule is new for Stripe. Permissions are payments' own: payment_merchant.manage to set up a merchant and test it, payment_dispute.manage to work disputes, payment_settlement.manage for payouts.

How Stripe's things map here​

At StripeHere
PaymentIntentA payment attempt; its id is the processor reference
Card charge before Stripe makes the money availableCan be voided (a full refund marked as a void)
Bank debit processingPending; cannot be voided
Bank debit failed after processingReturned, with Stripe's reason read as an R code (R01 insufficient funds, R02 account closed, R03 no account, R04 invalid number, R10 not authorised)
RefundA refund attempt and a refund receipt
Payout (automatic)A settlement: its charges, refunds, Stripe's fees and disputes, tied out before it posts
Dispute (needs response / under review)A dispute, opened on its own, with Stripe's fee; won or lost closes it on its own
Inquiry / early warningNothing: no money has moved

Manual payouts do not list their transactions at Stripe, so they cannot be tied out here: keep Stripe on automatic payouts.

3-D Secure. The server confirms each payment, so a card that asks its holder to authenticate is declined in words. Most US business cards never ask.

The page's Content-Security-Policy​

Stripe's fields need https://js.stripe.com and https://*.js.stripe.com in script-src and frame-src, and https://hooks.stripe.com in frame-src (see Payments: configuration).