本指南介绍如何在 StablePay API 中进行身份认证。
StablePay 使用 API Key 进行身份验证。所有 API 请求都必须包含有效的 API Key。
在 HTTP Header 中添加:
- 登录 StablePay 商户后台
- 进入 开发者设置 > API 密钥
- 点击 创建新密钥
- 保存生成的密钥
- 使用环境变量存储 API Key
- 不要在客户端代码中暴露 API Key
- 定期轮换 API Key
- 启用 IP 白名单
This guide explains how to authenticate with the StablePay API.
StablePay uses API Keys for authentication. All API requests must include a valid API Key.
Add to HTTP Header:
- Log in to StablePay Merchant Dashboard
- Navigate to Developer Settings > API Keys
- Click Create New Key
- Save the generated key
Note
API keys are only shown once, please save them securely!
- Use environment variables to store API Keys
- Never expose API Keys in client-side code
- Rotate API Keys regularly
- Enable IP whitelist