內容簡介
總結:這個外掛將您的 WooCommerce 商店連接到 SELFiT,讓顧客可以透過 SELFiT 錢包安全支付。
**問題與答案:**
1. 這個外掛提供了哪些亮點?
- 直接整合 SELFiT API 以創建安全支付連結
- 與 WooCommerce 兼容(最低 5.0 版本),測試至 8.5
- HPOS-ready(高性能訂單存儲)
- 可在 WooCommerce 訂單畫面中全額退款
- 自動檢測帳單電話;如有需要,可選擇讀取 Digits 外掛欄位
- 可選擇在專用的“SELFiT Logs”管理頁面中進行請求/錯誤日誌記錄
- 支援 IRR/Toman(將 IRR 自動轉換為除以 10)
2. 運行這個外掛的系統需求是什麼?
- WordPress 5.0+(測試至 6.8)
- WooCommerce 5.0+(測試至 8.5)
- PHP 7.4+
- SELFiT 商戶帳戶和 API 憑證
3. 這個外掛使用 API 連接到哪個服務?它需要哪些訂單詳細信息?
- 這個外掛使用 API 連接到支付網關。此連接是執行交易所必需的。
- 通過 API 發送的信息來自訂單詳細信息,包括:商品名稱、價格和數量、運送方式、買家信息(姓名和電話號碼)
4. 如何保證支付的隱私?
- 為了創建和驗證支付,外掛將以下信息傳送到 api.selfit.ir:
- 客戶電話號碼(以驗證 SELFiT 用戶的存在)
- 訂單 ID、金額,以及可選的產品項目(作為元數據)
- 如果啟用了日誌,有限的請求/回應數據將存儲在數據庫中進行疑難排解。商店擁有人有責任根據當地隱私法通知用戶。
5. 開發人員需要注意的重要信息有哪些?
- Gateway ID: selfit
- 內部確認端點: woocommerce_api_wc_selfit_gateway
- 重要 hook: woocommerce_order_status_cancelled, woocommerce_order_status_refunded
- HPOS 相容性宣布為 FeaturesUtil::declare_compatibility('custom_order_tables', ...)
- 日誌表 : {prefix}selfit_debug_logs
6. 如何獲得支援或成為商戶?
- 如需支援或商戶入門,請聯繫: [https://selfit.ir](https://selfit.ir)
外掛標籤
開發者團隊
② 後台搜尋「SELFiT Payment Gateway for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
This plugin connects your WooCommerce store to SELFiT and lets customers pay securely via the SELFiT wallet.
If you are upgrading from a previous version, please read the Upgrade Notice.
Highlights
– Direct integration with the SELFiT API to create secure payment links
– Compatible with WooCommerce (min 5.0), tested up to 8.5
– HPOS-ready (High-Performance Order Storage)
– Full refund from the WooCommerce order screen
– Auto-detects the billing phone; optionally reads Digits plugin fields if present
– Optional request/error logging in a dedicated “SELFiT Logs” admin page
– Supports IRR/Toman (auto-converts IRR by dividing by 10)
Requirements
– WordPress 5.0+ (tested up to 6.8)
– WooCommerce 5.0+ (tested up to 8.5)
– PHP 7.4+
– A SELFiT merchant account and API credentials
External services
This plugin uses an API to connect to the payment gateway. This connection is required to perform the transaction.
The information sent via the API is derived from the order details, including:
* Item name, price and quantity
* Shipping method
* buyer’s information (Name and phone number)
For more detailed description about how Selfit API works, please visit Selfit Terms of Use.
Privacy
To create and verify payments, the plugin sends the following to api.selfit.ir:
– Customer phone number (to validate SELFiT user existence)
– Order ID, amount, and optionally line items (as metadata)
If logging is enabled, limited request/response data are stored in the database for troubleshooting. Store owners are responsible for informing users according to their local privacy laws.
Notes for Developers
Gateway ID: selfit
Internal confirmation endpoint: woocommerce_api_wc_selfit_gateway
Important hooks: woocommerce_order_status_cancelled, woocommerce_order_status_refunded
HPOS compatibility declared with FeaturesUtil::declare_compatibility('custom_order_tables', ...)
Log table: {prefix}selfit_debug_logs
Support
For support or merchant onboarding, please contact: https://selfit.ir
