跳到主内容

产品

您可以添加您想要销售的产品 (或服务)。 以下将指导您如何添加产品的过程。

配置产品属性

首先,你需要理解产品的基本属性:

  • 标签
  • 详情
  • 货币
  • 价格
  • 数量
  • 已售出

product_field.png

支付服务提供商

除了设置这些属性外,您还需要为产品添加支付提供商。 可以向产品添加多个支付提供商。

要了解如何配置支付提供商,请参考支付提供商

product_provider.png

最后,填写返回URL。 这是付款完成后,付款提供商页面将重定向的URL。

If you need the provider to redirect users directly to other links instead of the casdoor callback page, you can fill the SuccessUrl field, Casdoor will append payment owner and name behind the link you provider, for example http://example.com/patha/pathb?transactionOwner={paymentOwner}&transactionName={paymentName}&otherPrams=value.

注意事项

If you fill the SuccessUrl field, you must call NotifyPayment api manually, otherwise the transaction will fail.

You should call the NotifyPayment api api/notify-payment/paymentOwner/paymentName with the param we provided in SuccessUrl.

预览产品

你已经完成了! 查看详细信息并保存:

产品预览