自定义支付渠道
Last updated
{
// 成功的响应固定为 0
"code": 0,
// 付款收银台页面的 URL,默认会被生成为二维码展示给用户,用户也可选择直接
// 打开此 URL
"data": "https://examplepayment.com/checkout/26544743"
}{
// 任意非0代码表示订单创建失败
"code": 500,
// 错误的详细描述
"error": "Failed to create a payment."
}POST /order/create
Host: examplepayment.com
Authorization: Bearer Vep6hl1x8fiQLasEauMEUqxFKyEqSXb9D_BBQpOiTd8=:1676027218
X-Cr-Site-Url: https://demo.cloudreve.org
X-Cr-Site-Id: b7de8bba-8f86-40fe-8171-c2625b6c4a61
X-Cr-Cloudreve-Version: 3.6.2
{
"name":"Cloudreve - 10 GB 容量包",
"order_no":"20230209190648343421",
"notify_url":"http://demo.cloudreve.org/api/v3/callback/custom/20230209190648343421/363f8866-6d0a-4dbf-a560-0c17de2eb7f9?sign=F-AdeTf7cR1uwmV1dqJ1kN_POGivKk_awMRPZUCZyhA%3D%3A1676027208",
"amount":100
}{
"code": 0
}{
// 任意非0代码表示订单创建失败
"code": 500,
// 错误的详细描述
"error": "Failed to fulfill a payment."
}