Configure
Use Stripe test-mode credentials in staging. Store secret keys and webhook signing secrets in a secret manager or protected environment variables. Never expose secret keys to browser code or commit them to Git.Payment lifecycle
- Backend creates a payment intent/session using the server-calculated order amount and currency.
- Client completes the provider’s supported payment flow.
- Backend verifies the provider result and webhook signature.
- Order/payment state is updated idempotently.
- Refunds and disputes are reconciled through authorized server-side operations.
