StablePay API 是一套基于 REST 架构的 API 集合,用于管理加密货币支付和退款。我们的 API 遵循 REST 设计原则,使用标准的 HTTP 方法和状态码,返回 JSON 格式的响应。
The StablePay API is a REST API collection for managing cryptocurrency payments and refunds. Our API is designed around REST principles, using standard HTTP methods, status codes, and returning JSON-encoded responses.
在开始之前,请确保您已经:
- 注册了 StablePay 商户账号
- 获取了 API 密钥 和 Secret Key
- 具备基本的 HTTP API 调用知识
Before you begin, make sure you have:
- Registered a StablePay merchant account
- Obtained API keys and Secret Key
- Basic knowledge of HTTP API calls
收银台展示建议 - 优化收银台中稳定币支付的展示方式,提升支付转化率
主要内容:
- 推荐展示方式(USDT | USDC Stablecoin Payment)
- API 对接最佳实践(PC 电商 / 移动端 / 游戏)
- Shopify / WooCommerce / Shoplazza / SHOPYY 集成展示建议
- StablePay Logo 及稳定币/钱包 Logo 素材下载
Checkout Display Guide - Optimize stablecoin payment display in checkout to improve conversion rates
Key Content:
- Recommended display format (USDT | USDC Stablecoin Payment)
- API integration best practices (Desktop / Mobile / Gaming)
- Shopify / WooCommerce / Shoplazza / SHOPYY integration display guidelines
- StablePay logo and stablecoin/wallet logo assets download
Payment API - 创建和管理支付会话,支持多种加密货币和稳定币
核心功能:
- 创建支付会话(Checkout Session)
- 查询支付状态和详情
- 取消支付会话
- 自动汇率转换和锁定
- 支持多币种(USDT、USDC等)
适用场景:
- 电商在线支付
- SaaS 服务订阅
- 数字商品销售
- 跨境支付结算
Payment API - Create and manage payment sessions with support for multiple cryptocurrencies and stablecoins
Core Features:
- Create payment sessions (Checkout Session)
- Query payment status and details
- Cancel payment sessions
- Automatic exchange rate conversion and locking
- Multi-currency support (USDT, USDC, etc.)
Use Cases:
- E-commerce online payments
- SaaS service subscriptions
- Digital goods sales
- Cross-border payment settlements
Subscription API - 创建和管理自动续费订阅,覆盖订阅、账单、订阅支付查询和订阅退款。
核心功能:
- 创建订阅并返回
checkout_url - 查询/列表/取消订阅
- 查询账单与订阅支付会话
- 查询支付方式(Payment Method)
- 对订阅支付发起退款
适用场景:
Subscription API - Create and manage recurring subscriptions, including subscription, invoice, payment lookup, and subscription-related refunds.
Core Features:
- Create subscriptions and return
checkout_url - Retrieve/list/cancel subscriptions
- Retrieve invoices and subscription payment sessions
- Retrieve payment methods
- Create refunds for subscription payments
Use Cases:
- SaaS recurring billing
- Membership subscriptions
- Recurring digital service charges
Refund API - 处理退款请求,支持全额和部分退款
核心功能:
- 创建退款请求
- 查询退款状态和详情
- 取消待处理的退款
- 退款原因记录
退款特性:
- 支持部分退款
- 同一订单可多次退款
- 异步退款处理
- 区块链交易追踪
Refund API - Process refund requests with support for full and partial refunds
Core Features:
- Create refund requests
- Query refund status and details
- Cancel pending refunds
- Refund reason tracking
Refund Features:
- Partial refund support
- Multiple refunds per order
- Asynchronous refund processing
- Blockchain transaction tracking