التخطي إلى المحتوى الرئيسي

المنتجات

يمكنك إضافة المنتج (أو الخدمة) التي ترغب في بيعها. سيوجهك ما يلي خلال عملية إضافة منتج.

تكوين خصائص المنتج

أولاً، عليك أن تفهم الخصائص الأساسية للمنتج:

  • الوسم
  • التفاصيل
  • العملة
  • السعر
  • الكمية
  • تم البيع

product_field.png

مزود الدفع

بالإضافة إلى تحديد هذه الخصائص، يجب عليك أيضًا إضافة مزودي الدفع للمنتج. يمكن إضافة مزودي دفع متعددين إلى منتج.

لمعرفة كيفية تكوين مزود الدفع، راجع مزود الدفع

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