跳到主内容

使用 FastSpring 收款

本指南介绍如何让用户通过 FastSpring 为您的 Casdoor 商品付款,FastSpring 负责处理软件及数字产品的支付、订阅和税务。


学习目标​

  • 从 FastSpring 获取 API 凭据和店面主机名。
  • 将 FastSpring 添加为支付提供商并将其添加到商品中。

所需条件​

  • 一个 FastSpring 账户
  • Casdoor 中的一个 product

获取凭据​

在 FastSpring 中,前往 Developer > API Credentials 并记下 API 用户名和 API 密码。记下您的店面主机名,例如 yourcompany.onfastspring.com。

在 Casdoor 中添加提供商​

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

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

  3. 填写以下字段:

    CasdoorFastSpring
    客户端IDAPI用户名
    客户端密钥API 密码
    主机店面主机(例如 mycompany.onfastspring.com)
  4. 保存提供商.

将提供商添加到产品​

将该提供商添加到产品的 Payment providers 中并保存。在结账时,用户将跳转到 FastSpring,并在付款后返回到您的应用。

另请参阅​