跳到主内容

使用 AirWallex 收款

本指南介绍如何让用户通过 AirWallex 为您的 Casdoor 产品付款。


学习目标​

  • 从 AirWallex 获取 API 密钥。
  • 将 AirWallex 添加为支付提供商并将其添加到产品中。

前提条件​


获取 API 密钥​

在 AirWallex 开发者仪表板 中,在 API Keys 下,复制 CLIENT ID 和 API KEY,或创建一个具有自定义权限的密钥。

API keys in AirWallex

在 Casdoor 中添加提供商​

  1. 在 Casdoor 管理控制台中,前往 Identity > Providers 并添加一个提供商。

  2. 将 Category 设置为 Payment,将 Type 设置为 AirWallex。

  3. 填写以下字段:

    CasdoorAirWallex
    客户端ID客户端ID
    客户端密钥API密钥

    AirWallex provider in Casdoor

  4. 保存提供商.

将提供商添加到产品​

将该提供商添加到产品的 Payment providers 中并保存。

AirWallex in the payment providers of a product

备注

When runmode in conf/app.conf of Casdoor is not prod, Casdoor uses the AirWallex sandbox (api.sandbox.airwallex.com), so use sandbox credentials in development. With runmode = prod, it uses the live API (api.airwallex.com).

另请参阅​