Skip to content

Jmaxlink/E-invoice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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

  1. Copy einvoice.php into wp-content/plugins/einvoice/ (or zip and upload via Plugins → Add New → Upload Plugin).
  2. Activate E-Invoice Collector. Activation creates the DB tables and generates the portal HMAC secret automatically.
  3. 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.

About

E-Invoice Collector — self-contained WordPress plugin: single-page guest e-invoice form + staff portal.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages