magebitcom / magento2-module-agentic-commerce

magebitcom/magento2-module-agentic-commerce

Magebit Agentic Commerce extension

magento2-module Compatibility: 2.4.7 Code Quality: Fail Tests: N/A Security: Pass MIT

Are you the maintainer of magebitcom?

Packagento pulls magebitcom's Composer packages from the public registry so buyers can find them here.

Claim the namespace to take ownership, publish new releases directly, and start charging for premium versions.

Claim this namespace →

Agentic Commerce for Magento 2 (ACP Feed, Payments and Checkout)

This module makes your store compatible with AI-powered shopping experiences like OpenAI's "Instant Checkout" in ChatGPT.

This is the first Open-Source module that enables Agentic Commerce features in Magento 2 / Adobe Commerce stores (such as Shop in ChatGPT). The module is Hyva and Adobe Commerce Cloud compatible.

Agentic Commerce Protocol (ACP) is an open standard that enables a conversation between buyers, their AI agents, and businesses to complete a purchase.

This module is currently actively under development by Magebit and is open to public contributions.

Features

  • ChatGPT Compatible Product Feed Export
  • Instant Checkout Ready
  • Agentic Checkout Configuration (according to ACP)
  • Agentic Checkout webhooks
  • Delegated Payment Support

Requirements

  • PHP >= 8.1
  • Stripe Payments (only if using checkout)

Installation

As a composer package

composer require magebitcom/magento2-module-agentic-commerce

Run bin/magento setup:upgrade

As a module

  1. Download latest release files and extract them under app/code/Magebit/AgenticCommerce
  2. Run bin/magento setup:upgrade

Configuration

You can find the Module's configuration under Stores -> Settings -> Configuration -> Magebit -> Agentic Commerce:
Make sure to configure Product Feed settings before running an export.

image

Additionally, there are settings at the product level. Here you can configure product visibility in Agentic search and whether to allow
Agentic Checkout.

image

ACP Ready Product Feed

To export the product feed, use the magebit:agentic-commerce:export Magento command:

Usage:
  magebit:agentic-commerce:export [options]

Options:
  -s, --store=STORE     Store ID to export products from [default: 1]
  -o, --output=OUTPUT   Output file path. Relative to var directory [default: "export/agentic_commerce.csv"]

Configuring Feed Mapping

Exported product attributes are mapped using the ac_product_feed_mapping.xml config file. To adjust the mapping,
create a new ac_product_feed_mapping.xml config file and add or overwrite existing mappings.

<mapping id="id">
    <source_attribute>sku</source_attribute>
    <target_attribute xsi:type="const">Magebit\AgenticCommerce\Api\Data\Spec\ProductInterface::ID</target_attribute>
</mapping>
  • id is a unique identifier for the mapping
    • source_attribute is the Magento 2 product attribute
    • target_attribute is the attribute code that will be used in the feed
    • formatter (optional) is a Magento 2 class that formats the attribute value

Source Attribute value can be a string or an object:

<mapping id="link">
    <source_attribute xsi:type="object">Magebit\AgenticCommerce\Model\Mapping\Source\Url</source_attribute>
    <target_attribute xsi:type="const">Magebit\AgenticCommerce\Api\Data\Spec\ProductInterface::LINK</target_attribute>
</mapping>

Source classes must implement the Magebit\AgenticCommerce\Api\Mapping\SourceInterface interface.

Check out the default ac_product_feed_mapping.xml config for a full reference.

Delegated Payments

By default, this module does not store any payment data as the implementation logic will be different depending on what PSP is used by the merchant. To enable delegated payments, it's required to implement a
class that implements Magebit\AgenticCommerce\Api\PaymentMethodVaultHandlerInterface and handles the storage of the
payment method data. Payment Method Vault handler will receive DelegatePaymentRequestInterface object and must return a vault token.

An example for an imaginary FooBar payment service provider:

<?php

namespace My\Module\AgenticCommerce\Model;

use Magebit\AgenticCommerce\Api\PaymentMethodVaultHandlerInterface;
use Magebit\AgenticCommerce\Api\Data\Request\DelegatePaymentRequestInterface;

class FooBarPaymentVaultHandler implements DelegatePaymentRequestInterface
{
    /**
     * @param DelegatePaymentRequestInterface $request 
     * @return bool 
     */
    public function canStore(DelegatePaymentRequestInterface $request): bool
    {
        return $request->getPaymentMethod()->getType() === 'card';
    }

    /**
     * @param DelegatePaymentRequestInterface $request 
     * @return string 
     */
    public function handle(DelegatePaymentRequestInterface $request): string
    {
        $fooBarVaultToken = $this->fooBarPaymentsApi->createPaymentMethod([
            'type' => 'card',
            'number' => $request->getPaymentMethod()->getNumber(),
            'expMonth' => $request->getPaymentMethod()->getExpMonth(),
            'expYear' => $request->getPaymentMethod()->getExpYear(),
            'cvc' => $request->getPaymentMethod()->getCvc(),
        ]);

        return $fooBarVaultToken->id;
    }
}

Vault handler class must be registered in di.xml:

<type name="Magebit\AgenticCommerce\Service\DelegatePaymentService">
    <arguments>
        <argument name="paymentMethodVaultHandlers" xsi:type="array">
            <item name="foo_bar" xsi:type="object">My\Module\AgenticCommerce\Model\FooBarPaymentVaultHandler</item>
        </argument>
    </arguments>
</type>

Handling place order requests

See: Magebit\AgenticCommerce\Model\Payment\StripePaymentsHandler

Contributing

Found a bug, have a feature suggestion or just want to help in general? Contributions are very welcome! Check out the list of active issues or submit one yourself.

Implementation as a Service

Interested in Magebit doing the integration for you? Contact us on our website and we can help you with the full implementation of Agentic Commerce sales channels (Instant Checkout on ChatGPT, Product Feeds, etc).


magebit (1)

Have questions or need help? Contact us at [email protected]

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
0.0.1 stable Fail Magento 2.4.7 Details 2025-10-13 10:10:32

Requires 4

Package Constraint
magebitcom/magento2-core 0.1.*
magento/framework *
php >=8.1
symfony/validator ^7.3

Suggests 1

Package Reason
stripe/stripe-payments *

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Fail di error
2.4.9 Fail di error Fail di error

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 54 54 warnings (ruleset: Magento2), 8 auto-fixable with phpcbf
PHPMD Warning 9 9 rule violations (UnusedPrivateField:8, NumberOfChildren:1)
Cpd Warning 10 10 duplicated chunks spanning 376 total lines (min-lines=5, min-tokens=70)
Composer validate Info 2 valid; 2 advisory notes (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 31 31
2.4.8 31 32
2.4.9 32 32

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
MIT

More from magebitcom

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.