CoinGate
快速启动
- 报名 at coingate.com 并获取 API 凭据
- 创建终端 输入 管理控制台 参数如下:
- 开始处理 ——适配器预建并准备使用.
概览
硬币-接受 70+ 密码
| 供应商 ID | coingate |
| 类别 | 密码链( B) |
| 网站 | coingate.com |
支助行动: Create Order (payments_authorize) Get Order (payments_status) Refund (payments_refund)
认证
方法 : 熊熊托肯语Name
** 页眉格式 :**
Authorization: Bearer {merchant_token}
自动添加前缀 : If API 键不包含“Bearer”,自动添加前缀。
示例:
# Input: "token_abc123"
# Result: Authorization: Bearer token_abc123
配置
所需参数
| 参数 | 说明 |
|---|---|
base_url | 基础 API URL |
api_key | API 密钥( 自动加载器) |
merchant_token | 创建订单的托肯商家 |
callback_url | URL 用于 Webhoks (可选) |
状态映射
| 提供者状况 | 4 工资状况 | 说明 |
|---|---|---|
paid | Charged | 已支付订单 |
canceled | Failure | 命令已取消 |
expired | Failure | 过期 |
invalid | Failure | 无效的顺序 |
confirming | AuthenticationPending | 在区块链中确认 |
new | AuthenticationPending | 新顺序 |
pending | AuthenticationPending | 等待付款 |
completed | Refunded | |
rejected | Failure | |
pending | PartiallyRefunded | |
processing | PartiallyRefunded |
API 参考文献
| 方法 | 终点 | 说明 |
|---|---|---|
| POST | /v2/orders | |
| GET | /v2/orders/{order_id} | |
| POST | /v2/orders/{order_id}/refunds |