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
-
In Stripe, open Developers → API keys. Choose Test mode while you are trying it out.
-
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.
-
Paste the keys:
Key Where Who sees it Secret key ( sk_test_…/sk_live_…; a restrictedrk_…key works too)Developers → API keys The server only Publishable key ( pk_…), same mode as the secret keySame page The browser, to show Stripe's fields Webhook signing secret ( whsec_…)Developers → Webhooks, after step 5 The server only Keys are write-only: they go to the credentials vault and are never shown again. An empty box keeps the stored key.
-
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.
-
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 / rule | Effect at Stripe |
|---|---|
payments.refund_approval_amount | As for every processor: a refund over it waits for a second person. |
payments.webhook_rate_per_minute | Stripe's notices count against it like any processor's. |
payments.dispute_reminder_days | Reminds about evidence due on disputes Stripe opened. |
| Fee posting Taken from each payout | Stripe'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 Stripe | Here |
|---|---|
| PaymentIntent | A payment attempt; its id is the processor reference |
| Card charge before Stripe makes the money available | Can be voided (a full refund marked as a void) |
| Bank debit processing | Pending; cannot be voided |
| Bank debit failed after processing | Returned, with Stripe's reason read as an R code (R01 insufficient funds, R02 account closed, R03 no account, R04 invalid number, R10 not authorised) |
| Refund | A 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 warning | Nothing: 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).