LokiCheckout_CheckoutGuard
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.
module.integration
PHP
8.2 - 8.5
Magento
2.4.6 - 2.4.9
CSP
Yes
PHPStan
5
Magento PHPCS
6
License
OSL-3.0
Latest Release
none
Loki Checkout integration for MageOS_CheckoutGuard, which protects the checkout against card-testing bots.
Features
- Automatic blocking of REST payment routes: Loki Checkout places orders through its own transport and never calls the core REST payment routes (
payment-information,order,set-payment-informationandselected-payment-methodunder/V1/guest-carts/:cartId/and/V1/carts/mine/). When Loki Checkout is enabled and the MageOS field Block REST Payment Routes is left empty, all of these routes answer 404. Disable this via Stores > Configuration > Loki Checkout > Checkout Guard > Block REST Payment Routes Automatically if another frontend or payment integration still uses these routes. When the MageOS field is filled in, the MageOS selection is used instead. - Cart deactivated: When the failed payment limit is reached and the cart is deactivated, the customer is redirected to the cart page (instead of the checkout) with the error message.
- Checkout reset: When the failed payment limit is reached and the checkout is reset, the Loki Checkout returns to the first step.
- Remaining attempts: Once a payment failed, the payment step shows how many payment attempts are left.
The failure limit and action are configured in Stores > Configuration > Sales > Checkout > Checkout Guard (MageOS_CheckoutGuard).
Installation
The package mage-os/module-checkout-guard is not available on Packagist. Add its GitHub repository first:
composer config repositories.mageos-checkout-guard vcs https://github.com/mage-os-lab/module-checkout-guard
Install this package via composer:
composer require loki-checkout/magento2-checkout-guard
Next, enable this module:
bin/magento module:enable MageOS_CheckoutGuard LokiCheckout_CheckoutGuard
Current status
pipeline
success
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.yireo.com/loki-checkout/LokiCheckout_CheckoutGuard.git
Composer details
Magento module name
LokiCheckout_CheckoutGuardComposer name
loki-checkout/magento2-checkout-guardComposer version
No release yet
Default branch
main
Requirements
ext-pcre: *
loki-checkout/magento2-core: ^2.7
loki/magento2-components: ^2.0
loki/magento2-css-utils: ^1.0
mage-os/module-checkout-guard: dev-main
magento/framework: ^103.0
magento/module-backend: ^102.0
magento/module-config: ^101.2
magento/module-quote: ^101.0
magento/module-store: ^101.0
psr/log: ^1.0 | ^2.0 | ^3.0
php: >=8.2 <8.6
Releases
Changelog
Last modified: October 30, 2026