StablePay Docs
产品开发者联系我们
首页产品文档快速开始APISaaS平台
首页
产品文档
支付产品能力自动货币转换
快速开始
快速开始身份认证支付会话商户交易退款
API
API 参考版本控制身份认证请求与响应分页频率限制错误处理支付服务退款服务Webhook 通知
SaaS平台
ShopifyWooCommerceShoplazza 店匠
  • 快速开始
  • 身份认证

核心概念

  • 支付会话
  • 商户
  • 交易
  • 退款
StablePay 开发者文档
Home
Product
Quick Start
API
SaaS
Login
Register
GitHub
Home
Product
Quick Start
API
SaaS
Login
Register
GitHub
  • 入门指南 / Getting Started

    • 快速开始 / Quick Start
    • 身份认证 / Authentication
  • 核心概念 / Core Concepts

    • 支付会话 / Payment Sessions
    • 商户 / Merchants
    • 交易 / Transactions
    • 退款 / Refunds

身份认证

本指南介绍如何在 StablePay API 中进行身份认证。

认证方式

StablePay 使用 API Key 进行身份验证。所有 API 请求都必须包含有效的 API Key。

Bearer Token 认证

在 HTTP Header 中添加:

Authorization: Bearer YOUR_API_KEY

获取 API Key

  1. 登录 StablePay 商户后台
  2. 进入 开发者设置 > API 密钥
  3. 点击 创建新密钥
  4. 保存生成的密钥

注意

API 密钥只会显示一次,请妥善保存!

安全建议

  • 使用环境变量存储 API Key
  • 不要在客户端代码中暴露 API Key
  • 定期轮换 API Key
  • 启用 IP 白名单

This guide explains how to authenticate with the StablePay API.

Authentication Method

StablePay uses API Keys for authentication. All API requests must include a valid API Key.

Bearer Token Authentication

Add to HTTP Header:

Authorization: Bearer YOUR_API_KEY

Getting an API Key

  1. Log in to StablePay Merchant Dashboard
  2. Navigate to Developer Settings > API Keys
  3. Click Create New Key
  4. Save the generated key

Note

API keys are only shown once, please save them securely!

Security Recommendations

  • Use environment variables to store API Keys
  • Never expose API Keys in client-side code
  • Rotate API Keys regularly
  • Enable IP whitelist

相关资源

  • API 认证详解
  • 错误处理
  • API Authentication Details
  • Error Handling
最后更新 / Last Updated: 2025/12/16 11:41
Prev
快速开始 / Quick Start
Next
支付会话 / Payment Sessions