LokiCheckout_LoqateDevTools

This integration is available in the paid plans for the Loki Checkout. Support for this integration is provided as is, because we are depending upon the original vendor as well. High priority support is only available on an hourly basis.
Development
Integration
Professional
PHP 8.2 - 8.5
Magento 2.4.6 - 2.4.9
CSP Yes
PHPStan 5
Magento PHPCS 9
License OSL-3.0
Latest Release none

This Magento 2 module is a development add-on to LokiCheckout_Loqate. It fakes the Loqate API, so that the address search can be tested without a Loqate account or credit. Never install it in production.

Installation

composer require --dev loki-checkout/magento2-loqate-dev-tools
bin/magento module:enable LokiCheckout_LoqateDevTools

Usage

Enable Stores > Configuration > Loki Checkout > Loqate Dev Tools > Use Fake Loqate API (loki_checkout/loqate_dev_tools/fake_api). Any non-empty Loqate API key then works, Loqate is never called and responses are not cached. The fake API answers with the fixtures in Client/fixtures/:

  • SW1A returns the container SW1A 2AA (3 addresses), which expands into 10, 11 and Flat 2, 12 Downing Street.
  • SW1A 2AA or Downing Street returns those three addresses directly (country United Kingdom).
  • 1600 Amphitheatre returns 1600 Amphitheatre Pkwy, Mountain View, California (country United States).
  • Any other search returns no results; an unknown address id returns error 1001 "Id Invalid".
  • The API key invalid-api-key returns error 2 "Unknown key", the API key out-of-credit-api-key returns error 3 "Account out of credit".

The fake API is a Guzzle handler that Plugin/FakeApiPlugin.php adds to the HTTP client of LokiCheckout\Loqate\Client\LoqateClientFactory. The responses use the same format as the Loqate Capture Interactive Find (v1.10) and Retrieve (v1.20) services.

WARNING: This module has no releases yet. If you want to use it, make sure to add the version @dev to the composer command.

Support

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

https://gitlab.loki-extensions.com/loki-checkout-dev/LokiCheckout_LoqateDevTools.git

Composer details
Magento module name
LokiCheckout_LoqateDevTools
Composer name
loki-checkout/magento2-loqate-dev-tools
Composer version
No release yet
Default branch
main
Requirements
ext-json: *
ext-pcre: *
guzzlehttp/guzzle: ^7.10
guzzlehttp/promises: ^1.4 || ^2.0
guzzlehttp/psr7: ^2.0
loki-checkout/magento2-core: ^2.7
loki-checkout/magento2-loqate: dev-main || ~0.0
magento/framework: ^103.0
magento/module-backend: ^102.0
magento/module-config: ^101.2
magento/module-store: ^101.1
php: >=8.2 <8.6
psr/http-message: ^1.0 || ^2.0
Releases
Changelog

Last modified: November 13, 2026