Karcmentes for WooCommerce

By karcmentes

0+ active installationsVersion 1.0.0

Automatic Karcmentes invoices for WooCommerce orders: invoices, proformas, annulments and payment registration.

Description

Karcmentes for WooCommerce connects your shop to the Karcmentes online invoicing service through the Karcmentes public API (documentation: https://api.karcmentes.hu/docs/). Karcmentes submits issued invoices to NAV through the NAV connection of your Karcmentes account, which you set up and verify in Karcmentes.

  • Automatic invoice when an order is completed, processing or paid – or manually from the order screen.
  • Proforma (díjbekérő) for bank transfer orders.
  • Automatic annulment (sztornó) on full refund and, optionally, on cancellation.
  • Payment registration on the invoice, also when a bank transfer arrives later. This is an accounting record in Karcmentes; no money is charged, moved or refunded.
  • Invoice language (Hungarian, English or German) chosen from the billing country or fixed in the settings.
  • VAT keys derived from WooCommerce tax rates: 27%, 18%, 5%, selected domestic 0% exemptions, intra-community (EU) and export keys. OSS invoicing is unavailable in 1.0.0.
  • Tax number field for classic and block checkout, with Hungarian and EU format validation and normalization. Registration or VIES validity is not checked.
  • Optional invoice email sent by Karcmentes. The delivery status is followed and failures are recorded on the order; “sent” means the mail server accepted the email.
  • Background processing with retries. Mutating requests carry a persisted idempotency key and request body to protect against duplicate processing after a timeout or server error.
  • Works with High-Performance Order Storage (HPOS) and the legacy order storage.
  • Administrator failure notifications after permanent errors or exhausted retries, configurable under WooCommerce > Settings > Emails.
  • Bulk invoice creation and retry of failed operations from the Orders list, using the existing background queue and stored request identities.
  • Sandbox support: API keys starting with biller_sandbox_ issue test documents in an isolated sandbox workspace. Sandbox invoices are never submitted to NAV, and Karcmentes does not send invoice emails from sandbox, so requested emails are recorded as failed.

External services

This plugin relies on the external services below. It contacts them only after you enter a Karcmentes API key, and only for the actions described here. No data is sent when the plugin is merely activated.

Karcmentes invoicing API

The Karcmentes online invoicing service (https://karcmentes.hu), operated by Karcmentes Kft., issues the invoices, proformas and annulments for your orders and submits issued invoices to the Hungarian Tax Authority (NAV) through the NAV connection configured in your Karcmentes account. The plugin cannot issue invoices without it; a Karcmentes account and API key are required.

  • When data is sent: when an invoice, proforma, annulment or payment registration is requested (automatically on the order status or payment events you enable, or manually from the order screen and the Orders list), when the plugin checks invoice access or invoice email delivery status, and when you click “Test connection” on the settings page.
  • What is sent: the customer’s billing name, company name, billing address and tax number; the customer’s email address, only if you choose to have Karcmentes email the invoice; the order lines (product names, quantities, units, prices, discounts, VAT keys), the order number, currency, exchange rate, dates, payment method and the invoice comment built from the order; your bank account number and invoice prefix if set in the plugin settings; your API key for authentication; and the WordPress, WooCommerce and plugin version numbers in the User-Agent header. Karcmentes creates a customer record in your Karcmentes account from the customer details of each issued invoice.
  • Where it is sent: the Karcmentes API at https://api.karcmentes.hu (or the API URL set on the settings page).
  • API documentation: https://api.karcmentes.hu/docs/
  • Terms of service: https://karcmentes.hu/jogi-dokumentumok/karcmentes-aszf
  • Privacy policy: https://karcmentes.hu/jogi-dokumentumok/privacy

Magyar Nemzeti Bank (MNB) exchange rate service

Hungarian invoices in a foreign currency must show the HUF exchange rate. For orders in a currency other than HUF, the plugin reads the official exchange rate from the public web service of the Magyar Nemzeti Bank (the central bank of Hungary).

  • When data is sent: when an invoice is created for an order whose currency is not HUF, unless the rate is already cached or supplied by the karcmentes_wc_exchange_rate filter.
  • What is sent: only the currency code and a date range. No customer, order or site data.
  • Where it is sent: https://www.mnb.hu/arfolyamok.asmx
  • Terms of use: https://www.mnb.hu/en/the-central-bank/about-the-mnb/terms-of-use
  • Privacy policy: https://www.mnb.hu/en/the-central-bank/practical-issues/data-protection-notice

Privacy

The plugin stores invoice identifiers, numbers and request data on the order. Personal data erasure follows WooCommerce’s Accounts & Privacy setting. Requests that still require an identical replay are temporarily retained, reported as retained, and cleaned automatically when replay is no longer needed. Issued documents remain in Karcmentes. This release does not download or store invoice PDFs. The API key is encrypted with the site’s secret keys when the Sodium extension is available, or can be set in wp-config.php. The optional debug log masks names, addresses, tax numbers and email addresses.

Installation

  1. Upload the plugin and activate it.
  2. In Karcmentes, set up your NAV connection, invoice pad and company bank account.
  3. In Karcmentes, generate an API key. Start with a sandbox key (it begins with biller_sandbox_).
  4. Go to WooCommerce > Settings > Karcmentes, paste the key and click “Test connection”.
  5. Check the payment method mapping and the VAT settings, then place a test order.

The API key can also be defined in wp-config.php:

define( 'KARCMENTES_WC_API_KEY', 'your-key' );

FAQ

Does the plugin check my NAV connection?

No. Karcmentes submits invoices to NAV through the NAV connection configured in your Karcmentes account. A successful connection test or issued invoice does not confirm that this connection is set up correctly. Verify it in Karcmentes before issuing live invoices.

Why do invoice emails fail with a sandbox key?

Karcmentes does not send invoice emails from sandbox workspaces. Requested emails are queued and then fail, so the plugin records them as failed. Use a live key to test real email delivery.

Which exchange rate is used for foreign-currency orders?

The official MNB rate published on, or most recently before, the fulfillment date. Other plugins can supply a rate with the karcmentes_wc_exchange_rate filter.

What happens with partial refunds?

The order gets a note: issue a correction invoice in Karcmentes if required. Full refunds annul the invoice automatically.

Developer hooks

  • karcmentes_wc_invoice_payload – filter the request body.
  • karcmentes_wc_should_invoice_order – skip automatic invoicing for an order.
  • karcmentes_wc_order_tax_number – supply the tax number from another field.
  • karcmentes_wc_exchange_rate – supply an exchange rate.
  • karcmentes_wc_operation_completed, karcmentes_wc_operation_failed – react to results.

Changelog

1.0.0

  • First public release.
  • Automatic and manual invoices, proformas, annulments and payment registration.
  • Background retries with persisted request identities and API-key rotation safeguards.
  • Classic/block checkout tax-number fields and HPOS support.
  • Administrator failure emails and bulk invoice/retry actions.
  • Personal data export, erasure and deferred cleanup of replayable requests.
  • Requires WooCommerce 10.0+ and WordPress 6.7+.
  • OSS, plugin PDF downloads and WooCommerce PDF attachments are unavailable in this release.