Search by

mainmoney / mm-aggr-wordpress

mainmoney

WordPress plugin for MainMoney aggregator payments

Package info

github.com/MainMoney-Inc/mm_aggr_wordpress

Type:wordpress-plugin

pkg:composer/mainmoney/mm-aggr-wordpress

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 5

v0.1.1 2026-10-15 10:53 UTC

This package is auto-updated.

Last update: 2026-10-24 11:25:36 UTC


README

Packagist License: GPL v2+

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

  1. Install the plugin, either:
    • with Composer: composer require mainmoney/mm-aggr-wordpress (for Composer-managed sites such as Bedrock, which install wordpress-plugin packages into wp-content/plugins), or
    • from the zip attached to each GitHub release (upload via Plugins → Add New → Upload; dependencies are bundled).
  2. When working from a git checkout, run composer install in the plugin directory; the PHP SDK (mainmoney/mm-aggr-php-sdk) comes from Packagist.
  3. Activate MainMoney in WP Admin → Plugins.
  4. Settings → MainMoney: Client ID, API secret, Test mode, webhook secret. Leave Base URI empty unless you override the SDK hosts.
  5. 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.