mainmoney / mm-aggr-wordpress
WordPress plugin for MainMoney aggregator payments
Package info
github.com/MainMoney-Inc/mm_aggr_wordpress
Type:wordpress-plugin
pkg:composer/mainmoney/mm-aggr-wordpress
Requires
- php: ^8.2
- mainmoney/mm-aggr-php-sdk: ^0.1.1
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-24 11:25:36 UTC
README
Accept MainMoney aggregator payments on WordPress. This plugin uses the official PHP SDK on the server and the JS/TS frontend SDK in the browser.
For WooCommerce checkouts, install MainMoney for WooCommerce instead.
Requirements
- WordPress 6.7 or later
- PHP 8.2 or later
- Composer
- A merchant application on MM Aggregator
Install
- Install the plugin, either:
- with Composer:
composer require mainmoney/mm-aggr-wordpress(for Composer-managed sites such as Bedrock, which installwordpress-pluginpackages intowp-content/plugins), or - from the zip attached to each GitHub release (upload via Plugins → Add New → Upload; dependencies are bundled).
- with Composer:
- When working from a git checkout, run
composer installin the plugin directory; the PHP SDK (mainmoney/mm-aggr-php-sdk) comes from Packagist. - Activate MainMoney in WP Admin → Plugins.
- Settings → MainMoney: Client ID, API secret, Test mode, webhook secret. Leave Base URI empty unless you override the SDK hosts.
- In the aggregator admin, set the merchant webhook URL to
https://your-site.example/wp-json/mm-aggr/v1/webhooks.
Do not put API keys in theme JavaScript.
Checkout
Shortcode (omit amount for an open amount; set it to lock the total):
[mm_aggr_checkout amount="25.00" currency="USD" reference="ORDER-123"]
Or insert the MainMoney Checkout block. The wizard talks only to this
site’s REST proxy (/wp-json/mm-aggr/v1/...), which calls the PHP SDK.
Examples
A local WordPress site with this plugin is in examples/wordpress-site.
License
Copyright (c) 2026 MainMoney SARL. Licensed under the GNU General Public License, version 2 or (at your option) any later version (GPL-2.0-or-later). See LICENSE.
Want to contribute? See CONTRIBUTING.md.