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