Linux 软件免费装
Banner图

SanBar EXPress NFe & POS-PDV BR

开发者 sanbazar
更新时间 2026年12月3日 04:31
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce pos nfe fiscal pdv

下载

1.0 1.0.0

详情介绍:

SanBar EXPress NFe & POS-PDV BR is a full-screen point of sale (POS, called PDV in Brazil) for WooCommerce stores. In Brazil it also issues the fiscal documents: NF-e (model 55) and NFC-e (model 65), straight from the POS or from online-store orders, with its own fiscal engine (NFePHP libraries) and your A1 digital certificate. No third-party invoicing provider and no per-invoice fee. In Portuguese the plugin is called EXPress Fiscal PDV. Features Point of sale (POS / PDV) Fiscal invoicing, Brazil (NF-e / NFC-e) Checkout and customers Integration with the SanBar Suite Works on its own. When the other plugins are installed, they connect without depending on each other: Technical requirements The Inter and IBM Plex Mono fonts used by the screens are bundled with the plugin (SIL Open Font License 1.1, see assets/fonts/); nothing is loaded from external font services.

安装:

  1. Upload the sanbar-express-nfe-pdv-br folder to /wp-content/plugins/, or install via Plugins → Add New → Upload.
  2. Activate the plugin (WooCommerce must be active).
  3. Go to SB Softwares → EXP NFe & POS-PDV (or EXP NFe & POS-PDV in the main menu, without the SB Softwares Hub) → Settings.
  4. Upload the A1 certificate, fill in the issuer data and the tax regime (CRT), and start in the homologation (test) environment.

常见问题:

Do I need a third-party invoicing service?

No. The plugin signs and sends the invoices to SEFAZ itself, using your A1 certificate.

Which tax regimes are supported?

The invoice engine follows the regime set in the settings (CRT). Its validation rules are focused on MEI (CRT 4) and Simples Nacional (CRT 1).

Where are the invoices and the certificate stored?

In the WordPress database (the XML files compressed), never in a public folder of the site — so they are included in your regular database backups and are not lost when the plugin is updated. Keep the XML files for at least 5 years, as required by law.

What happens to my data when I delete the plugin?

Nothing is removed. Deleting the plugin leaves this in the database, on purpose:

  • The issued invoices (authorized XML), the events (cancellations, correction letters), the voided number ranges (table {prefix}nfbr_arquivos) and the plugin settings.
  • Your digital certificate, in the site vault (the option sanbar_certificado). It is shared with SanBar EXPress Fiscal Check-BR, which may still need it, and whether to remove it is your choice.
Your orders, products and their fiscal fields are never touched. To have the certificate removed automatically, turn on "Also delete the digital certificate when the plugin is deleted" in Settings → Testes tab (off by default; it also removes the certificate for Fiscal Check-BR). The issued invoices are never removed. To remove the certificate by hand, do it before deleting the plugin: in Settings → Testes tab, click Apagar certificado. Or, after deleting, remove the option sanbar_certificado (and nfbr_certificado, if it still exists) from the {prefix}options table of the database. Why the invoices are kept: the issuer must keep the invoice's digital file for the period set by the tax legislation, and make it available to the tax authority on request. Deleting a plugin must not destroy documents you are legally required to keep.
  • Ajuste SINIEF 07/05, cláusula décima (which instituted the NF-e; the NFC-e follows the same Ajuste, as amended): "O emitente deverá manter a NF-e em arquivo digital, sob sua guarda e responsabilidade, pelo prazo estabelecido na legislação tributária, mesmo que fora da empresa, devendo ser disponibilizado para a Administração Tributária quando solicitado." Text at CONFAZ.
  • Código Tributário Nacional (Lei 5.172/1966), art. 195, parágrafo único: commercial and tax records and the documents that support them must be kept until the tax credits they refer to are time-barred. The periods are set by arts. 173 and 174 (five years, counted as those articles provide). That is why the readme says "at least 5 years".
State rules can add requirements, so ask your accountant before deleting anything. This is information, not legal advice. If you really want everything gone (after the legal period, and after exporting a copy), delete the table {prefix}nfbr_arquivos and the options starting with nfbr_ by hand.

My certificate is old or the upload fails. What can I do?

Some older A1 certificates (.pfx) use RC2/3DES encryption that current servers (OpenSSL 3) cannot read. This plugin then tries to convert the file by itself (see the next question). If the server does not allow it, convert it on your computer and upload the new file. There is also a "?" help next to the upload with these steps:

  • openssl pkcs12 -legacy -in old.pfx -nodes -out temp.pem
  • openssl pkcs12 -export -in temp.pem -out new.pfx
  • rm temp.pem
Run them in this order. The first asks for the old file's password; the second asks you to choose a password for the new file (type it twice; it can be the same). temp.pem holds your private key without protection, so delete it right away (on the Windows Command Prompt use del temp.pem). If you get "unknown option -legacy", your OpenSSL is old: remove -legacy. On Windows, Git for Windows includes OpenSSL in Git Bash. You can also ask your certificate authority to re-issue or export the A1 in the new format. Keep the original file, and never send the certificate or its password by e-mail or chat.

Does the plugin run commands on my server?

Only one, and only in the case above: when you upload an old-format certificate, this plugin runs the server's openssl program (PHP exec) to re-encode the file you just sent.

  • The program is looked up in fixed, standard paths; nothing from the request goes into the command, and every argument goes through escapeshellarg.
  • The password is passed through a file, never on the command line.
  • The four temporary files are created with permission 0600 (owner only) before any content is written, and are always deleted afterwards. One of them holds the private key unprotected, which is why this matters.
  • It never runs at any other time. If exec is disabled or openssl is missing, nothing runs and you are told how to convert the file yourself.

Is the certificate shared with SanBar EXPress Fiscal Check-BR?

Yes. There is one certificate per site, kept in the site vault (the option sanbar_certificado), and both plugins read and write the same one:

  • If the vault is empty, you can send the certificate here or in SanBar EXPress Fiscal Check-BR. If it already has a certificate, the plugin shows it and does not offer the upload. To replace it, delete the current one first (Settings → Testes tab → Apagar certificado) and send the new one.
  • It works with the other plugin active, deactivated or not installed.
  • It is stored encrypted: the .pfx file and its password are sealed together with libsodium (authenticated encryption), using a key derived from your site's security keys (the salts in wp-config.php). Anything altered in the database is refused. If you change the site's security keys the certificate can no longer be opened: the plugin says so and you send it again.
  • If you move the site or change the security keys (salts) in wp-config.php, the certificate can no longer be opened. The plugin then says so on the Settings screen and when issuing, and asks you to restore the previous keys or upload the certificate again. Keep a copy of your .pfx file.
  • Deleting a plugin does not remove the certificate (see "What happens to my data when I delete the plugin?").

Does the plugin use frames (iframes)?

Yes, only to show the plugin's own screens inside the plugin's home screen, and to open a WooCommerce order inside the Orders screen. Every frame loads a page of your own site's admin (same address, same login session and the same user permissions); no external site or remote content is ever framed. Without the right permission, the page inside the frame shows the usual WordPress access error.

Is the fiscal part limited?

No. Issuing, cancelling, correcting and voiding NF-e/NFC-e are fully available.

更新日志:

1.0.0