Linux 软件免费装
Banner图

Verkkokauppapaja B2B Checkout for WooCommerce

开发者 tomppasalmi
更新时间 2026年10月4日 18:04
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce b2b finland y-tunnus ytj

下载

0.3.2

详情介绍:

Verkkokauppapaja B2B Checkout makes WooCommerce ready for Finnish business customers. Everything described here is included in this plugin, with no limits, trials or license keys. Verkkokauppapaja B2B Checkout Pro (optional) A separate, optional add-on is available for shops that need more: EU VIES VAT validation, e-invoice (verkkolasku) address and operator fields, details on PDF invoices, warnings or blocking for bankrupt/ceased companies, B2B-only mode, company details in My Account, a Business ID column in the orders list, a REST API field and admin editing. This plugin works fully on its own without it. More about Pro External services This plugin connects to one external service when a customer enters a business ID at checkout: PRH open data YTJ API (Finnish Patent and Registration Office), https://avoindata.prh.fi/opendata-ytj-api/v3/companies. The business ID entered by the customer is sent to look up the company's public register data (name, address, VAT registration, status). Terms / licence (CC BY 4.0), PRH privacy. No other data (names, emails, addresses of the customer) is sent. Requests are made from your server only when a business ID is entered or an order is placed, and results are cached to minimise calls. Autofill can be turned off in the settings. Privacy

安装:

  1. Upload the plugin and activate it (WooCommerce 8.9 or newer required).
  2. Go to WooCommerce → Settings → Verkkokauppapaja B2B and choose which fields are shown and required.
  3. Optional: add the suggested privacy policy text from Settings → Privacy → Policy guide.

屏幕截图:

  • Block checkout: inline error for an invalid Y-tunnus.
  • Classic checkout (Finnish store) with the company details filled in from YTJ.
  • Order screen in the admin (Finnish): company details under the billing address.
  • Settings (Finnish admin).

升级注意事项:

0.3.2 Updated Pro add-on link. No functional changes. 0.3.1 New plugin name (Verkkokauppapaja B2B Checkout for WooCommerce), late escaping in the admin order box, bundled translations removed. 0.3.0 VIES checks, e-invoice fields, PDF invoice details, admin editing, the REST API field and My Account details are now in the separate Pro add-on. Install Pro before updating if you use them. 0.2.0 Admin editing, REST API field, My Account company details and better support for older WooCommerce versions.

常见问题:

Does it work with the block checkout?

Yes. Fields are registered with the WooCommerce Additional Checkout Fields API. On WooCommerce 9.9 and newer, WooCommerce itself shows and requires the company fields only when "I am buying as a company" is checked. On WooCommerce 8.9–9.8 the plugin hides the fields itself and enforces the required fields when the order is placed.

Which versions are supported?

Tested with WooCommerce 8.9 and 11.1 on WordPress 6.5–7.1 and PHP 7.4–8.4, with both HPOS and legacy order storage.

How do I read the data in my own code or integration?

Use y_kassa_get_order_data( $order ) in PHP. It returns the Business ID, company name, VAT ID, buyer reference and YTJ result for business orders (an empty array for consumer orders).

Is the VAT ID checked against VIES?

This plugin checks the format and derives the Finnish VAT ID from the Y-tunnus. Live validation against the EU VIES register is part of the optional Verkkokauppapaja B2B Checkout Pro add-on.

Is the lookup endpoint safe to expose?

The autofill uses a read-only REST route that only returns public register data. It requires a nonce, is rate-limited per IP (60 lookups per 10 minutes, filter y_kassa_rate_limit) and only ever calls the fixed PRH address.

更新日志:

0.3.2 0.3.1 0.3.0 0.2.0 0.1.0