メインコンテンツにスキップ

Product

販売したい商品(またはサービス)を追加できます。 商品を追加するプロセスを以下が案内します。

商品属性の設定

まず、商品の基本的な属性を理解する必要があります:

  • タグ
  • 詳細
  • 通貨
  • 価格
  • 数量
  • 販売済み
  • Is recharge: When enabled, the product becomes a recharge type with custom pricing

product_field.png

Recharge Products

Recharge products allow users to add custom amounts to their account balance. When you enable the "Is recharge" option, the product price becomes flexible—users can enter any amount they wish to recharge. Upon successful payment, the specified amount is automatically added to the user's balance.

This is useful when you want to let users top up their accounts with any amount instead of fixed product prices.

支払いプロバイダー

これらの属性を設定するだけでなく、商品に支払いプロバイダーを追加する必要があります。 複数の支払いプロバイダーを商品に追加できます。

支払いプロバイダーの設定方法については、支払いプロバイダーを参照してください

product_provider.png

最後に、リターンURLを記入してください。 これは、支払いが完了した後に支払いプロバイダーページがリダイレクトするURLです。

Success URL (Optional)

If you need the provider to redirect users directly to a custom URL instead of the Casdoor callback page, you can fill in the Success URL field. When configured, Casdoor will append the payment owner and transaction name as query parameters to your provided URL.

For example, if you set the Success URL to http://example.com/payment/success, users will be redirected to:

http://example.com/payment/success?transactionOwner={paymentOwner}&transactionName={paymentName}

You can include additional query parameters in your Success URL, such as:

http://example.com/payment/success?customParam=value&transactionOwner={paymentOwner}&transactionName={paymentName}
注意

Important: If you configure the Success URL field, you must manually call the NotifyPayment API to complete the transaction, otherwise the payment will fail.

Call the API endpoint: api/notify-payment/{paymentOwner}/{paymentName} using the parameters provided in the Success URL query string.

商品のプレビュー

完了しました! 詳細を確認して保存してください:

product_preview