跳到主内容

使用 Stripe 收款

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


学习目标​

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

所需条件​


获取 API 密钥​

在 Stripe 仪表盘中,在 API keys 下,复制 Publishable key 和 Secret key。

API keys in the Stripe dashboard

在 Casdoor 中添加提供商​

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

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

  3. 填写以下字段:

    字段值
    Client IDPublishable key
    Client secret密钥

    Stripe provider in Casdoor

  4. 保存提供商.

将提供商添加到产品​

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

Stripe in the payment providers of a product

另请参阅​