跳转到主要内容

登录商户后台

完成基本资料提交后,您会收到一封邮件以激活您的生产账号。 invitation 请根据页面提示完成密码的设置,然后登录您的账户。 首次登录时,会强制绑定一次性验证码。我们推荐使用 Microsoft Authenticator 或者 Google Authenticator app。

初始化API密钥

点击Developers标签页. 点击初始化密钥按钮, Secret Key只会展示一次,请妥善保存.
key

创建第一个产品(可选)

点击 Products 标签页. 需要输入产品名称,图标,价格,这些信息会被展示给付款人。
product
price

创建 Checkout Session

参考API文档以创建第一个付款Session。
请确保在测试环境验证后再尝试生产!
curl --location --request POST 'https://api.clinkbill.com/api/checkout/session' \
--header 'X-Timestamp: ${currentMillisecondsTimestamp}' \
--header 'X-API-Key: ${sk_key}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customerEmail": "customer@example.com",
    "originalAmount": ${amount},
    "originalCurrency": "USD",
    "priceDataList":[
        {
            "name":"A One-time purchase",
            "quantity": 1,
            "unitAmount":${unitAmount},
            "currency":"USD"
        }
    ]
}'