LokiCheckout_CocNl

Other
Professional
PHP 8.1 - 8.4
Magento 2.4.7 | 2.4.8
CSP Yes
PHPStan 1
Magento PHPCS 8
Latest Release 1.0.9

Magento version PHP version License Latest Version

This Magento 2 module is an add-on package to the LokiCheckout_Coc module. It enhances the Chamber of Commerce functionality with Dutch validation.

Online validation via the KvK API is still pending.

Installation

Install this package via composer:

composer require loki-checkout/magento2-coc-nl

Next, enable this module:

bin/magento module:enable LokiCheckout_CocNl

Testing

curl https://api.kvk.nl/test/api/v1/naamgevingen/kvknummer/90005414 -H "apikey: l7xx1f2691f2520d487b902f4e0b57a0b197"```

## Current status

<!-- badges.test.start -->
[![Static Tests](https://gitlab.yireo.com/loki-checkout/LokiCheckout_CocNl/badges/main/pipeline.svg?job=static-tests)](https://gitlab.yireo.com/loki-checkout/LokiCheckout_CocNl/-/pipelines)
[![Unit Tests](https://gitlab.yireo.com/loki-checkout/LokiCheckout_CocNl/badges/main/pipeline.svg?job=unit-tests)](https://gitlab.yireo.com/loki-checkout/LokiCheckout_CocNl/-/pipelines)
[![Integration Tests](https://gitlab.yireo.com/loki-checkout/LokiCheckout_CocNl/badges/main/pipeline.svg?job=integration-tests)](https://gitlab.yireo.com/loki-checkout/LokiCheckout_CocNl/-/pipelines)
[![Playwright](https://gitlab.yireo.com/loki-checkout/LokiCheckout_CocNl/badges/main/pipeline.svg?job=playwright)](https://gitlab.yireo.com/loki-checkout/LokiCheckout_CocNl/-/pipelines)
[![DI Compilation](https://gitlab.yireo.com/loki-checkout/LokiCheckout_CocNl/badges/main/pipeline.svg?job=compile)](https://gitlab.yireo.com/loki-checkout/LokiCheckout_CocNl/-/pipelines)
<!-- badges.test.end -->

Support

For getting support, create an Issue under the following project URL:

https://gitlab.yireo.com/loki-checkout/LokiCheckout_CocNl.git

Configuration Options

The following options of this module can be configured via the Store Configuration:

Chamber of Commerce (NL) > Mode
loki_checkout/coc_nl/mode
Chamber of Commerce (NL) > KvK API Key
loki_checkout/coc_nl/api_key
KvK (CoC) API key for online lookups.
Loki Components

The following LokiComponents are created or references in this module:

loki-checkout-coc.billing.address.coc loki-checkout-coc.shipping.address.coc
Module Dependencies

The following dependencies are declared in the module its `etc/module.xml` file:

LokiCheckout_Core Loki_Base Loki_Components Loki_CssUtils Loki_FieldComponents Loki_MapComponents Magento_AdminNotification Magento_Backend Magento_Catalog Magento_CatalogInventory Magento_Checkout Magento_CheckoutAgreements Magento_Cms Magento_Config Magento_Csp Magento_Customer Magento_Directory Magento_Eav Magento_Indexer Magento_MediaStorage Magento_Newsletter Magento_Payment Magento_Quote Magento_Rule Magento_Sales Magento_SalesRule Magento_SalesSequence Magento_Shipping Magento_Store Magento_Tax Magento_Theme Magento_Ui Magento_User Magento_Variable Magento_Vault Magento_Widget Yireo_CspUtilities
Composer details
Magento module name
LokiCheckout_CocNl
Composer name
loki-checkout/magento2-coc-nl
Composer version
1.0.9
Default branch
main
Requirements
ext-json: *
ext-pcre: *
guzzlehttp/guzzle: ^7.9
loki-checkout/magento2-core: ^2.0
loki/magento2-components: ^2.0
magento/framework: ^103.0
magento/module-backend: ^102.0
magento/module-store: ^101.1
php: >=8.2 <8.6
Releases
1.0.9 27 September 2026
1.0.8 27 September 2026
1.0.7 27 September 2026
1.0.6 27 September 2026
1.0.5 27 September 2026
1.0.4 27 September 2026
1.0.3 27 September 2026
1.0.2 27 September 2026
1.0.1 27 September 2026
1.0.0 27 September 2026
0.0.2 27 September 2026
0.0.1 27 September 2026
Changelog

[1.0.9] - 28 August 2026

Fixed

  • Add languages
  • Make sure system.xml tooltips and comments are translatable
  • Implement actual validation of given Coc NL number

[1.0.8] - 08 October 2025

Fixed

  • Add better error message
  • Update README

[1.0.7] - 28 August 2025

Fixed

  • Add CI files
  • Replace yireo/opensearch with yireo/opensearch-dummy in Gitlab CI

[1.0.6] - 26 August 2025

Fixed

  • 0bab66a Add GitLab CI files

[1.0.5] - 21 August 2025

Fixed

  • Add dependency with loki/magento2-css-utils

[1.0.4] - 18 August 2025

Fixed

  • Allow for PHP 8.1 compatibility
  • Lower requirements to PHP 8.1

[1.0.3] - 15 August 2025

Fixed

  • Change group label in Store Config

[1.0.2] - 07 August 2025

Fixed

  • Add client WIP
  • Lower PHP requirement to PHP 8.2+

[1.0.1] - 22 July 2025

Fixed

  • Fix dep with loki/magento2-components 2.0

[1.0.0] - 22 July 2025

Fixed

  • Rename PHP namespace from Yireo_Loki* to Loki*
  • Rename composer package from yireo/magento2-loki* to loki/magento2*
  • Fix XML
  • Generate new MODULE.json with simple test count
  • Allow PHP 8.4 in CI

[0.0.2] - 25 April 2025

Fixed

  • Allow upgrading to LokiFieldComponents and LokiCheckout 1.0
  • Change composer keyword loki-misc to loki-other

[0.0.1] - 21 January 2025

  • Initial release

Last modified: June 1, 2026