LokiCheckout_CheckoutViaBol

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.
Integration
Payment
Professional
Standard
PHP 8.2 - 8.5
Magento 2.4.6 - 2.4.9
CSP Yes
Unit Tests 11
Integration Tests 8
PHPStan 9
Magento PHPCS 7
License OSL-3.0
Latest Release 1.0.1

Overview

This module integrates the bol module (Bol_CheckoutViaBol, "bol.checkout") with Loki Checkout for Magento 2, both with Luma and Hyvä.

Features

  • Fast checkout button "bol.checkout" for guests, at the top of the Loki Checkout
  • Payment method cvb: after placing the order, the customer is redirected to bol to pay

Requirements

  • Magento 2.4.x
  • PHP 8.2 or higher
  • bol/magento2-module-checkoutviabol ^1.5, installed from the bol composer repository
  • loki-checkout/magento2-core ^2.0

Installation

The bol module is only available from the bol composer repository. Add this repository first:

composer config repositories.bol composer https://cvb.composer.bol.com/

Warning: Without this repository, composer looks for bol/magento2-module-checkoutviabol on Packagist, where a package with the same name exists that is not the bol module.

composer require loki-checkout/magento2-checkout-via-bol
bin/magento module:enable Bol_CheckoutViaBol LokiCheckout_CheckoutViaBol
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean

Configuration

Configure the bol module under Stores → Configuration → Sales → Payment Methods → bol.checkout (merchant ID and secret).

The fast checkout button is shown when:

  • the customer is a guest;
  • the bol payment method is enabled and its merchant credentials are valid;
  • the bol setting to show the buttons is enabled;
  • the customer did not just return from bol.

How It Works

  • The fast checkout button is added to the block loki-checkout.fast_checkout ("Pay faster with"). Clicking it creates a bol session (cvb/session/create) and redirects the customer to bol. When this fails, an error message is shown and the button can be used again.
  • When the customer pays with the cvb payment method, Loki Checkout redirects to cvb/order/redirect after placing the order. This relies on the session redirect fallback of LokiCheckout_Core.

Testing

The Playwright tests need the fixture module LokiCheckout_CheckoutViaBolTestFixture (in Test/Fixture/), which fakes a bol API token. Never install it in production. Hersir installs it via hersir-additional.sh, GitLab CI via .gitlab-ci/composer-additional.sh.

Current status

pipeline success

Support

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

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

Module Dependencies

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

Bol_CheckoutViaBol LokiCheckout_Core Loki_Base Loki_Components Loki_CssUtils Loki_FieldComponents 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_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_CheckoutViaBol
Composer name
loki-checkout/magento2-checkout-via-bol
Composer version
1.0.1
Default branch
main
Requirements
bol/magento2-module-checkoutviabol: ^1.5
loki-checkout/magento2-core: ^2.7.6
loki/magento2-components: ^2.0
magento/framework: ^103.0
php: >=8.2 <8.6
psr/log: ^1.0 || ^2.0 || ^3.0
Releases
1.0.1 10 November 2026
1.0.0 10 November 2026
Changelog

[1.0.1] - 03 November 2026

Fixed

  • require LokiCheckout_Core 2.7.6 for the bol order redirect [advanced]
  • cover the bol checkout button and payment in Luma and Hyva
  • cover the redirect to bol after placing a cvb order
  • show a working bol checkout button to eligible guests
  • require the bol module 1.5 from the bol repository
  • Remove countries from composer.json
  • Add composer keywords and countries
  • Add supported countries to composer file
  • Beautify README
  • Add PHP 8.5 linting to pipeline
  • Add Bol composer repository

Removed

  • Remove PHP 8.1 support, add PHP 8.5 support

[1.0.0] - 12 June 2026

Initial release

Last modified: June 9, 2026