B2Brouter for WooCommerce

B2Brouter for WooCommerce

توسط

B2Brouter for WooCommerce connects your WooCommerce store with the B2Brouter platform to generate and send electronic invoices automatically — including the country-specific tax authority reporting required in Spain, France and Poland.

Built-in regulatory compliance

The plugin includes explicit support for the following e-invoicing regimes:

  • Spain — Verifactu: automatic AEAT reporting with QR verification on every issued invoice.
  • France — DGFiP: routing through the official PPF / Chorus Pro infrastructure.
  • Poland — KSeF: automatic submission of invoices to the national KSeF system.

Beyond these explicit regimes, the plugin generates compliant electronic invoices in standard formats (UBL, Facturae, Peppol) for the rest of the EU, the UK, and other jurisdictions supported by B2Brouter.

Important: Authority-specific configuration (Verifactu certificates, KSeF tokens, Chorus Pro identifiers, etc.) is managed in the B2Brouter dashboard, not in the WordPress plugin UI. The plugin only needs your B2Brouter API key.

Key features

  • Automatic or manual invoice generation — issue invoices on order completion or on demand from the order screen.
  • Bulk invoice generation — process multiple completed orders at once via WooCommerce bulk actions.
  • Standard and simplified invoices — IssuedInvoice (B2B with TIN) or IssuedSimplifiedInvoice (B2C without TIN), selected automatically.
  • Credit notes for refunds — generated on demand when a WooCommerce refund is created against an invoiced order.
  • PDF generation, caching and email attachment — store PDFs locally and attach them to order/customer/refund emails.
  • Real-time invoice status via webhooks (HMAC-SHA256 signed) with optional 6-hour fallback polling.
  • TIN / VAT field at checkout — works on both classic and block-based checkout (WooCommerce 8.6+); intra-EU reverse charge auto-detected.
  • HPOS compatibility — native support for High-Performance Order Storage (Custom Order Tables).
  • Peppol tax categories — automatic mapping (S, E, Z, NS, AE) from WooCommerce tax configuration.

Requirements

  • WordPress 5.8 or higher
  • WooCommerce 5.0 or higher
  • PHP 7.4 or higher
  • Active B2Brouter eDocExchange subscription

External Services

This plugin connects your WooCommerce store to B2Brouter, a third-party e-invoicing SaaS operated by B2Brouter SL. Using the plugin requires an active B2Brouter account and API key.

Service endpoint: https://api.b2brouter.net (overridable via the B2BROUTER_API_BASE constant for staging or self-hosted instances).

Data sent to B2Brouter when an invoice or credit note is created:

  • Order data — order number, date, currency, totals, and line items (product name, SKU, quantity, unit price, tax rate, Peppol tax category).
  • Customer billing data — name, company name, billing address, country, email, and TIN/VAT number when provided at checkout.
  • Refund data when a credit note is generated against a previously invoiced order.

Data received from B2Brouter: invoice status updates and PDF documents, either via webhook callbacks to /wp-json/b2brouter/v1/webhook or via SDK polling.

When data is transmitted: whenever an invoice or credit note is created (automatically on order completion, or on demand from the order screen, the WooCommerce bulk action, or the customer’s My Account page) and whenever invoice status is polled or pushed back via webhook.

Provider and legal documents:

  1. Download the plugin ZIP from the GitHub releases page (or install from the WordPress.org plugin directory once available).
  2. In WordPress admin, go to Plugins Add New Upload Plugin and select the ZIP file.
  3. Click Install Now, then Activate Plugin.
  4. Navigate to Invoices Settings, paste your B2Brouter API key and click Validate Key.
  5. Choose Automatic or Manual invoice generation mode and configure series codes for invoices and credit notes.
  6. (Recommended) Configure webhooks under Invoices Settings Webhook Configuration for real-time status updates.

سوالات متداول

Do I need a B2Brouter account?

Yes. The plugin requires an active B2Brouter eDocExchange subscription. Sign up at app.b2brouter.net and obtain an API key under Developers API Keys.

Where do I configure Verifactu, KSeF or Chorus Pro?

Authority-specific configuration (certificates, tokens, identifiers) is managed in your B2Brouter dashboard, not in the WordPress plugin UI. Once your dashboard is configured, the plugin transparently sends invoices through the appropriate regime.

Does the plugin work for countries outside Spain, France and Poland?

Yes. Beyond the explicitly supported compliance regimes, the plugin generates standard electronic invoices (UBL, Facturae, Peppol) for the rest of the EU, the UK and other jurisdictions supported by B2Brouter. Need explicit compliance for another country? Open an issue.

Is HPOS (High-Performance Order Storage) supported?

Yes. The plugin declares full compatibility with WooCommerce HPOS / Custom Order Tables.

How do I get real-time invoice status updates?

Enable webhooks under Invoices Settings Webhook Configuration. Copy the auto-generated webhook URL into your B2Brouter dashboard (Developers Webhooks), then paste the generated webhook secret back into WordPress. Updates arrive in under one second; a 6-hour fallback poll keeps things reliable.

Is the TIN/VAT field shown at checkout?

Yes, automatically. It works with both classic shortcode-based checkout and the new block-based checkout (WooCommerce 8.6+). The value is stored in _billing_tin on the order and on the customer profile for reuse.

Are credit notes generated automatically?

Credit notes are generated on demand for WooCommerce refunds when the parent order has an invoice. They follow the country-specific format (e.g. Spanish rectifying invoices) and are accessible from the order admin and from the customer’s My Account page.

Are tests included?

Yes. The plugin ships with a PHPUnit test suite. See docs/DEVELOPER_GUIDE.md in the repository for instructions.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
هیچ نسخه‌ای برای این آیتم موجود نیست.
بدون امتیاز

قیمت:

رایگان

نگارش

آخرین انتشار

20 خرداد 1405

آخرین بروزرسانی

2 ماه پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 5.8+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 7.4+

نسخه ها

0 نسخه