Deskripzioa
SmartPay Invoices connects your WooCommerce store to the SmartPay.co.il platform to create tax documents for paid orders. It can generate documents automatically when an order is paid, or on demand from the Orders screen (single or bulk). Documents are produced and numbered by SmartPay; the plugin stores a reference on the order and lets staff and customers download the PDF.
The plugin is compatible with WooCommerce High-Performance Order Storage (HPOS).
Features
- Automatic document generation for paid orders (receipt or tax-invoice/receipt), toggleable.
- On-demand generation from the Orders list: a per-order “Create invoice” action and bulk “Generate” actions.
- Retry action for orders whose document creation failed, with the error shown on the order.
- PDF download for staff (Orders list + order screen) and customers (My Account).
- Optional attachment of the invoice PDF to the WooCommerce “Completed order” email.
- Configurable tax handling (tax rate plus inclusive / exclusive / WooCommerce tax modes).
- Optional checkout ID / VAT number field, required above the allocation threshold synced from your SmartPay account.
- Activity log of API requests, responses and errors, with an on-demand connection test.
Configuration
Under WooCommerce > Smartpay Invoices:
- Choose Sandbox or production mode.
- Enter your API Key, API Secret and Company.
- Use “Test connection” to confirm the credentials work.
- Choose the produced document type, whether to auto-generate invoices for paid orders, whether to attach the PDF to emails, and the tax handling.
External services
The plugin sends API requests to SmartPay depending on the selected mode:
- Production: https://api.protected-payment.com/
- Sandbox: https://app11.smartpay.co.il/
Privacy policy: https://www.smartpay.co.il/privacy-policy/
Contributors
- StarNetwork
- SmartPay.co.il
Instalazioa
- Upload the
smartpay-invoicesfolder to/wp-content/plugins/, or install the ZIP from Plugins > Add New. - Make sure WooCommerce is installed and active.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Go to WooCommerce > Smartpay Invoices and enter your SmartPay.co.il API credentials.
MEG
-
How do I obtain SmartPay.co.il API credentials?
-
Contact SmartPay.co.il support.
-
Does the plugin support HPOS (High-Performance Order Storage)?
-
Yes.
Berrikuspenak
Ez dago berrikuspenik plugin honentzat.
Laguntzaileak eta Garatzaileak
“SmartPay Invoices for WooCommerce” software librea da. Ondoko pertsonek egin dizkiote ekarpenak plugin honi.
LaguntzaileakItzul zaitez SmartPay Invoices for WooCommerce zure hizkuntzara.
Garapena interesatzen zaizu?
Araka kodea, begiratu SVN biltegia edo harpidetu garapen erregistrora RSS bidez.
Aldaketen loga
1.6.0
- Added: an order can now carry both a receipt and a tax invoice — the orders list shows each document with its own Show button and offers a create button per document type.
- Added: a combined tax invoice/receipt cannot be created alongside a separate receipt or tax invoice (and vice versa); conflicting attempts are blocked with an explanation, including in bulk.
- Added: automatic document creation is trigger-aware — tax invoices can also be created when the order is created (a payment demand before payment); such documents carry no payment line until paid.
- Changed: the automation setting now sits right below the document type and offers only the options valid for it.
- Changed: email attachments and the My Account page include every document the order carries.
- Changed: the allocation threshold row was restyled.
1.5.5
- Fixed: re-activating the plugin no longer erases its settings (API credentials, mode and preferences are kept).
- Changed: the document-type setting stays visible (disabled, with a hint) until API credentials are entered, instead of disappearing.
- Fixed: the order screen no longer offers a PDF download before a document exists.
- Fixed: order fees (surcharges, gift wrap and similar) now appear on the document; previously the document total fell short of the amount paid.
- Fixed: coupon discounts were deducted twice on the document (once in the line amounts and again as the discount row); lines now show pre-discount prices and the discount is applied once.
- Fixed: document lines are now linked to the synced SmartPay catalog products.
- Fixed: automatic generation no longer issues an empty document for an order whose items were not yet added.
- Changed: the logs screen shows the newest entries first.
1.5.4
- Fixed: invoice lines were multiplied by their quantity twice (the line total was sent as the unit price); each line now carries the true per-unit price.
- Fixed: every invoice line showed its name twice; the description now carries only real item details (e.g. variation attributes).
1.5.3
- Changed: the per-order “Create invoice” button and the bulk “Generate” actions now apply only to paid orders; unpaid orders are marked “Not paid” and skipped with their own count in the bulk notice.
1.5.2
- Changed: the allocation threshold is now synced from your SmartPay account (the dashboard setting, capped by the regulatory floor) instead of entered manually — refreshed daily, on the settings page and via a Refresh button.
1.5.1
- Added: documents now carry a transaction entry per payment reported by the paying gateway (e.g. vouchers plus a credit-card remainder), with protection against duplicate documents on concurrent paid events.
- Added: the allocation threshold is now configurable directly in the plugin settings; the field appears when the ID/VAT requirement is set to “Above the allocation threshold”.
1.5.0
- Added: Tax Invoice (חשבונית מס) as a selectable document type, in the settings and as a bulk Generate action.
1.4.4
- Added: a settings note linking to where the company logo is uploaded in the SmartPay dashboard.
1.4.3
- Fixed: the ID/VAT number entered on the admin order screen now stores under its own key and reliably reaches the document, instead of colliding with WooCommerce’s own additional-field handling.
1.4.2
- Changed: the connection test now reports why it failed — an unreachable/timed-out host (with the error detail) versus an authentication/unexpected-response failure — instead of a generic message.
1.4.1
- Fixed: the connection test now accepts any valid JSON response from the API (a bad credential returns a non-JSON 401) instead of requiring a specific status value.
- Fixed: production dashboard links point to my.smartpay.co.il.
1.4.0
- Added: the connection test now truly authenticates against the API (lists documents) instead of only checking that credentials were entered.
- Added: invoice language is a per-store setting again and is sent as an override on document creation.
- Changed: the invoice template picker is now a dropdown with a live preview of the selected template.
- Changed: the orders-list invoice column uses consistent text buttons (Show / Create / Retry) instead of a mixed icon + buttons.
- Changed: removed the plugin tax settings; WooCommerce is now the single source of truth for tax.
- Changed: renamed the ID/VAT requirement option to “Above the allocation threshold”.
- Fixed: Hebrew translation refinements.
1.3.1
- Changed: dashboard links and the API endpoint now follow the Sandbox setting (sandbox uses the dev dashboard and API).
1.3.0
- Added: editable ID / VAT number field on the admin order screen (fixes allocation on admin-created high-value Israeli orders).
- Added: “Require customer ID / VAT number” setting (never / above a threshold / always).
- Added: Hebrew (he_IL) translation and a translation template; the plugin now loads its text domain.
- Added: links to the SmartPay dashboard for invoice language and allocation settings, plus a hint for finding API credentials.
- Fixed: the invoice PDF now reliably attaches to the completed-order email.
- Security: stopped logging API credentials, enabled TLS certificate verification, restricted the admin pages, and masked the stored API secret.
- Changed: removed the unused “Company” setting; renamed the checkout field to “ID / VAT number”.
1.2.0
- Added: choose the invoice PDF template (Classic / Modern v1 / Modern v2 / Thermal) from a visual picker in the settings.
1.1.0
- Added: WooCommerce High-Performance Order Storage (HPOS) compatibility.
- Added: per-order “Create invoice” action and a three-state Orders column (download / create / retry).
- Added: on-demand “Test connection” button on the settings page.
- Fixed: bulk “Generate” now creates and stores documents and reports accurate created/skipped/failed counts.
- Fixed: the invoice PDF now attaches to the “Completed order” email.
- Fixed: the “Clear Log” button.
- Fixed: PDF download now works on hosts without allow_url_fopen (uses the WordPress HTTP API).
- Fixed: log table creation under MySQL strict mode.
- Security: restricted the settings and logs pages to appropriate user capabilities.
1.0.0
- Initial release.