falconmedia / magento2-agentic-checkout-mollie
Mollie hosted checkout pay URL provider for the FalconMedia ACP agentic checkout
Package info
github.com/falconmedia/magento2-agentic-checkout-mollie
Type:magento2-module
pkg:composer/falconmedia/magento2-agentic-checkout-mollie
Requires
- php: >=8.2
- falconmedia/magento2-agentic-checkout: ^0.1
- magento/framework: *
- magento/module-sales: *
- magento/module-store: *
- mollie/magento2: ^3.2
Requires (Dev)
- phpunit/phpunit: ^9.5 || ^10.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-12-04 09:00:02 UTC
README
Mollie add-on for falconmedia/magento2-agentic-checkout. It registers a pay URL provider for the Mollie payment
methods, so the ACP complete call places the order with a Mollie method and returns a hosted Mollie checkout link.
No card data passes through the store or the agent.
Requirements
falconmedia/magento2-agentic-checkout^0.1mollie/magento2^3.0, configured with a working API key
Installation
composer require falconmedia/magento2-agentic-checkout-mollie
bin/magento setup:upgrade
bin/magento setup:di:compile
Configuration
- Configure Mollie as usual (API key, enable the method you want) and use test mode until the flow is verified.
- Set the hosted payment method of the agentic checkout to the Mollie method code, for example
mollie_methods_ideal(pathfalconmedia_agentic_checkout/payment/method_code). - Enable the checkout completion in the agentic checkout configuration.
Registered codes: all shopper-facing mollie_methods_* methods except paymentlink (admin only), reorder,
pointofsale, general and expresscomponents.
Flow
completeplaces the order with the Mollie method (statepending_payment).- The provider creates a Mollie payment token for the order and returns
https://<store>/mollie/checkout/redirect/paymentToken/<token>/as the order permalink. - When the buyer opens that URL, the Mollie module starts the transaction and redirects to the hosted checkout.
- Mollie calls the webhook
mollie/checkout/webhook; the buyer returns throughmollie/checkout/process. The Mollie module updates the order status, invoices it and sends the confirmation.
The permalink is the Mollie redirect URL (store frontend URL) only while the order is new or pending_payment with nothing invoiced; afterwards it is the store home page. The payment token is reused when it exists and a concurrent creation is resolved by reading the token again.
The transaction is started lazily, so complete makes no Mollie API call. A Mollie API error shows when the buyer
opens the link, not during complete.
Tests
MAGENTO_VENDOR_AUTOLOAD=/path/to/magento/vendor/autoload.php vendor/bin/phpunit -c package-source/FalconMedia/AgenticCheckoutMollie/phpunit.xml
License
MIT