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).
- 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.
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.
- No third-party CDNs, no external credentials, no deploy tooling bundled.
- Portal password + token lifetimes are set under Settings → E-Invoice.