Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/jmaxlink/e-invoice/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
E-Invoice Collector (WordPress Plugin)
Self-contained WordPress plugin for collecting guest e-invoice details and processing them through a lightweight staff portal. Does not touch your theme or any existing page.
- Single-page guest form: Booking Confirmation Number + invoice recipient details (Individual / Company), TIN, contact, and address.
- Own database table, own REST route, own admin screens.
- Staff portal (
/e-invoice-portal/) — process requests without a WordPress login. - Optional email notifications (configurable).
Install
- Copy
einvoice.phpintowp-content/plugins/einvoice/(or zip and upload via Plugins → Add New → Upload Plugin). - Activate E-Invoice Collector. Activation creates the DB tables and generates the portal HMAC secret automatically.
- Add the shortcode
[bhg_einvoice]to any page to render the guest form.
Configure
Edit the placeholder constants at the top of einvoice.php before going live:
| Constant | Purpose |
|---|---|
BHG_EINV_BHG_EMAIL |
Your e-invoice inbox (internal notifications) |
BHG_EINV_BHG_CC |
Optional internal CC (comma-separated) |
BHG_EINV_FROM |
From: header for outgoing mail |
BHG_EINV_NOTI_SECRET |
Shared secret for the notifier/bounce REST routes (set EINV_NOTI_SECRET env, or edit here) |
Property names, ID types, states and countries live in the REFERENCE DATA block — adjust to your business.
Notes
- No third-party CDNs, no external credentials, no deploy tooling bundled.
- Portal password + token lifetimes are set under Settings → E-Invoice.