Stripe
Stripe takes one-time card payments for web-shop orders on its hosted payment page. Each firm holds its own keys; nothing is shared.
Setup
- In the Stripe dashboard, create a secret API key (
sk_live_…, orsk_test_…while trying things out). - Add a webhook endpoint pointing at
https://your-site/payment/notify/stripe/and subscribe it tocheckout.session.completed(andcheckout.session.async_payment_succeededif you enable payment methods that confirm later). Copy its signing secret (whsec_…). - On this screen, enable the gateway and paste the secret key and the webhook signing secret. Both are write-only: the page never shows them back, and saving with them empty keeps what is stored.
- Set Mode to
testorlive— it is stamped on every recorded payment, so test money never masquerades as real money.
How it completes
The signed webhook records a completed payment on the order exactly once; the customer's landing back on the order page additionally verifies the session (paid state, amount, currency, order identity).
Refunds
Refund from the document's payment row — Stripe executes immediately, partial amounts included.
Tags
commercepaymentsstripe