{"id":260770,"date":"2025-12-02T08:19:29","date_gmt":"2025-12-02T08:19:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/selfit\/"},"modified":"2026-02-09T11:07:03","modified_gmt":"2026-02-09T11:07:03","slug":"selfit","status":"publish","type":"plugin","link":"https:\/\/mk.wordpress.org\/plugins\/selfit\/","author":23399802,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.5","stable_tag":"1.0.5","tested":"6.8.5","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"SELFiT Payment Gateway for WooCommerce","header_author":"Abdullah Abdi","header_description":"Official payment gateway integration for WooCommerce that connects stores to SELFiT.","assets_banners_color":"","last_updated":"2026-02-09 11:07:03","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/selfit.ir","header_plugin_uri":"https:\/\/selfit.ir\/","header_author_uri":"https:\/\/DigiWP.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":206,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"selfit","date":"2025-12-02 08:23:05"},"1.0.5":{"tag":"1.0.5","author":"selfit","date":"2026-02-09 11:07:03"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3407665,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.5"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Checkout page with \u201cPay with SELFiT\u201d","2":"Gateway settings showing token status","3":"SELFiT logs page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1890,4870,507,153263,286],"plugin_category":[45],"plugin_contributors":[255506,251517],"plugin_business_model":[],"class_list":["post-260770","plugin","type-plugin","status-publish","hentry","plugin_tags-gateway","plugin_tags-iran","plugin_tags-payment","plugin_tags-toman","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-abdiscript","plugin_contributors-selfit","plugin_committers-selfit"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/selfit\/assets\/icon-128x128.png?rev=3407665","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin connects your WooCommerce store to SELFiT and lets customers pay securely via the SELFiT wallet.<br \/>\nIf you are upgrading from a previous version, please read the Upgrade Notice.<\/p>\n\n<p><strong>Highlights<\/strong>\n- Direct integration with the SELFiT API to create secure payment links\n- Compatible with WooCommerce (min 5.0), tested up to 8.5\n- HPOS-ready (High-Performance Order Storage)\n- Full refund from the WooCommerce order screen\n- Auto-detects the billing phone; optionally reads Digits plugin fields if present\n- Optional request\/error logging in a dedicated \u201cSELFiT Logs\u201d admin page\n- Supports IRR\/Toman (auto-converts IRR by dividing by 10)<\/p>\n\n<p><strong>Requirements<\/strong>\n- WordPress 5.0+ (tested up to 6.8)\n- WooCommerce 5.0+ (tested up to 8.5)\n- PHP 7.4+\n- A SELFiT merchant account and API credentials<\/p>\n\n<h4>External services<\/h4>\n\n<p>This plugin uses an API to connect to the payment gateway. This connection is required to perform the transaction.\nThe information sent via the API is derived from the order details, including:\n* Item name, price and quantity\n* Shipping method\n* buyer's information (Name and phone number)\nFor more detailed description about how Selfit API works, please visit <strong><a href=\"https:\/\/selfit.ir\/about\">Selfit Terms of Use<\/a><\/strong>.<\/p>\n\n<h3>Privacy<\/h3>\n\n<p>To create and verify payments, the plugin sends the following to <code>api.selfit.ir<\/code>:\n- Customer phone number (to validate SELFiT user existence)\n- Order ID, amount, and optionally line items (as metadata)<\/p>\n\n<p>If <strong>logging<\/strong> 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.<\/p>\n\n<h3>Notes for Developers<\/h3>\n\n<ul>\n<li>Gateway ID: <code>selfit<\/code><\/li>\n<li>Internal confirmation endpoint: <code>woocommerce_api_wc_selfit_gateway<\/code><\/li>\n<li>Important hooks: <code>woocommerce_order_status_cancelled<\/code>, <code>woocommerce_order_status_refunded<\/code><\/li>\n<li>HPOS compatibility declared with <code>FeaturesUtil::declare_compatibility('custom_order_tables', ...)<\/code><\/li>\n<li>Log table: <code>{prefix}selfit_debug_logs<\/code><\/li>\n<\/ul>\n\n<h3>Support<\/h3>\n\n<p>For support or merchant onboarding, please contact: https:\/\/selfit.ir<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/<\/code> or upload the ZIP via <strong>Plugins \u2192 Add New<\/strong>.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Go to <strong>WooCommerce \u2192 Settings \u2192 Payments<\/strong> and enable <strong>SELFiT<\/strong>.<\/li>\n<li>Open the gateway settings and enter your <strong>API Username<\/strong> and <strong>Password<\/strong>. Save to authenticate and receive tokens.<\/li>\n<li>(Optional) Enable request\/error logging for troubleshooting.<\/li>\n<li>Set your store currency (IRR or Toman). In IRR mode, amounts are automatically divided by 10 before sending to SELFiT.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"the%20gateway%20doesn%E2%80%99t%20appear%20on%20checkout\"><h3>The gateway doesn\u2019t appear on checkout<\/h3><\/dt>\n<dd><ul>\n<li>Make sure WooCommerce is active.<\/li>\n<li>Enter and save your SELFiT API credentials so the plugin can authenticate.<\/li>\n<li>A valid customer phone number is required. The plugin uses <code>billing_phone<\/code> (and Digits fields if Digits is installed).<\/li>\n<li>If the SELFiT user doesn\u2019t exist, the gateway may be hidden.<\/li>\n<\/ul><\/dd>\n<dt id=\"do%20you%20support%20toman%3F\"><h3>Do you support Toman?<\/h3><\/dt>\n<dd><p>Yes. If your store uses <strong>IRR (Rial)<\/strong>, the amount sent to SELFiT is automatically divided by 10. If you use <strong>Toman<\/strong>, the amount is sent as-is.<\/p><\/dd>\n<dt id=\"can%20i%20refund%20from%20woocommerce%3F\"><h3>Can I refund from WooCommerce?<\/h3><\/dt>\n<dd><p>Yes. Use a <strong>Full Refund<\/strong> from the order screen; the plugin will submit a refund request to SELFiT and log the result.<\/p><\/dd>\n<dt id=\"how%20is%20the%20callback%20url%20configured%3F\"><h3>How is the callback URL configured?<\/h3><\/dt>\n<dd><p>The plugin automatically generates the return URL based on the internal WooCommerce endpoint and sends it to the API.<\/p><\/dd>\n<dt id=\"where%20can%20i%20see%20logs%3F\"><h3>Where can I see logs?<\/h3><\/dt>\n<dd><p>Go to <strong>WooCommerce \u2192 SELFiT Logs<\/strong>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>\u00abPartial Refund\u00bb problem fixed!<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Official SELFiT payment gateway for WooCommerce.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/260770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=260770"}],"author":[{"embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/selfit"}],"wp:attachment":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=260770"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=260770"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=260770"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=260770"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=260770"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=260770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}