- Create or log in to your Stripe account.
- Go to the Stripe Dashboard.
- Open Developers → API keys.
- Copy your Publishable key.
- Copy your Secret key.
Test Mode and Live Mode
| Mode | Purpose |
|---|---|
| Test Mode | Used for testing payments. No real money is charged. |
| Live Mode | Used for real customer payments. Real money is charged. |
Do not mix test keys and live keys. Test keys must be used only in Test Mode, and live keys must be used only when Test Mode is disabled.