SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
InstalledModules

Payments (module)

Payments lets the modules that charge money take payments from visitors. Today the shop is its only user. Visitors pay on Mollie's own checkout page, so card and bank details never reach the site's server. It is an official module (payments): an admin installs it, enters a Mollie API key in its settings and switches it on under Modules. The client uses their own Mollie account. Until 18 November 2026 payments were a service of SHADE's core; now they are a module like the shop, so a site that takes no payments does not carry them.

What users can do

  • Admins install the module, enter, replace or remove the Mollie API key in its settings, switch it on and off, and see every payment taken on the Payments screen. A test_… key runs everything in test mode, where no real money is taken; a live_… key takes real payments. A saved key is never shown again.
  • Visitors start a checkout on the site through a module such as the shop, pay on Mollie's page, and return to a page of the site that the module chooses.
  • Modules that require it start checkouts, hear about every status change of their payments, and refund all or part of a paid payment. Each sees only its own payments.

The Payments screen has no refund button and no manual status changes. Refunds and cancelling happen from the module that took the payment (for the shop: Refund and Cancel order on the Orders page).

Who may do it

ActionPermissionRoles
Install, switch on or off, save the Mollie keypackages.manage (Modules)admin
See the Payments screenpayments.payments.readadmin
Read the payments' numbers with an AI assistant's toolspayments.readadmin, ai
Start a checkoutthe module decidesvisitors, through the module
Refund or cancel a paymentthe module decidesshop: commerce.orders.refund (admin, Shop manager) and commerce.orders.manage
Report a payment's statusanyone may report; the module checks with MollieMollie

Editors can neither see the payments nor change the key (see Users).

Setting it up

  1. Install the module and open its Settings under Modules (Modules).
  2. Enter the Mollie API key, found in the Mollie dashboard under Developers. It starts with test_ or live_ and is stored encrypted. Saving with the field empty keeps the stored key. The module shows as "needs setup" until a key is stored.
  3. Switch the module on. Do this before the modules that take payments: the shop cannot be switched on until it is on, and the payments module cannot be switched off or uninstalled while a module that needs it is on.
  4. Start with a test_… key, try a checkout, and replace it with the live_… key when you are ready. A payment made under the old key is unknown to Mollie under the new one: finish or refund those first (see Test and live).

The instance needs its public API address set (SHADE_API_URL), because Mollie needs an address to report payments to (Coolify). Without it checkouts are refused.

In the admin

Payments (in the sidebar's Sales section; icon: credit card), for admins, once the module is on.

  • Header badge: Live: real payments, Test mode, or Not set up (no key stored). A Mollie key button takes you to the module's settings, where the key is entered.
  • Intro text explaining that visitors pay on Mollie's own page and card details never reach the site.
  • Payments still need the stored key: when payments are open or pending, or paid and not fully refunded, a card warns that Mollie knows them only under the stored key. With another account's key, or a live key instead of a test one, their updates and refunds stop working.
  • Payments list, newest first: columns When, For, Amount (in euros, with what was refunded), Module, Status (Open, Pending, Paid, Failed, Cancelled, Expired) and a Test badge. Above it a status select (Every status or one) and a module field. Empty state: "No payments yet."

The screen and the settings are also in Dutch.

On the website

Nothing directly; payments are started by modules. The flow for a visitor of the shop:

  1. The visitor checks out. The shop creates an order, reserves stock and starts a payment.
  2. The visitor is sent to Mollie's checkout page, in the page's language when Mollie knows it (Dutch, English, German, French, Spanish or Italian).
  3. The visitor pays (or cancels) on Mollie's page. Mollie sends them back to the page the module chose (for the shop: its confirmation page, which keeps checking the order status).
  4. Mollie tells the site that the payment changed. The module asks Mollie for the payment again, stores its status, and tells the module that started it.

Rules and limits

Statuses. Open, Pending, Paid, Failed, Cancelled, Expired. They follow Mollie's statuses; Mollie's "authorized" counts as Pending. A new payment starts as Open. After that it follows what Mollie reports, with two rules: Paid stays Paid, and a finished payment (Failed, Cancelled, Expired) never opens again; it can still become Paid when the money arrives late. A refund does not change the status: it only increases the refunded amount.

Amount checks. When Mollie reports a payment paid but the amount or currency differs from what was asked, the payment is marked Failed.

Amounts and currency. Amounts are counted in whole cents, from 1 cent to €1,000,000. The currency is always euro, and only Mollie is supported.

What a checkout holds. The payment belongs to the module that started it. It carries the module's own reference (an order number, at most 200 characters) and a description (1–255 characters). One module never sees another's payments.

No double payments. A checkout the module sends twice (for example when a visitor clicks again or a request is repeated) gives the payment already started, and Mollie never creates two payments for it. If an earlier attempt failed before the visitor was sent to Mollie, the next one tries again with the same payment.

Refunds and cancelling. They happen from the module that took the payment, after that module's own permission check. Only paid payments can be refunded, in full or in part, as long as the total stays within the amount paid ("At most N cents can still be refunded"). An optional reason (at most 255 characters) is passed to Mollie as the refund's description. Refunds of one payment made at the same moment wait for each other, so together they never exceed what was paid. A payment that is not paid yet is cancelled where Mollie allows it (bank transfer and a few other methods); a card or iDEAL payment that is still open cannot be cancelled and simply expires.

Refunds Mollie made that the site did not record (for example one made in Mollie's dashboard): before refunding, and on every update from Mollie, the module asks Mollie how much is refunded already and takes the higher amount over, so nothing is refunded twice. The refunded amount never goes down and never exceeds the amount.

Telling the module. Every change of a payment is an event, payments.payment.<status> (pending, paid, failed, canceled, expired) and payments.payment.refunded, also for a refund made in Mollie's dashboard. The module that started the payment hears it. If it fails to handle one, it is tried again. A module that is switched off hears nothing; when it is switched on again, it hears every event it missed, so a payment made while the shop was off still marks its order paid. The module acts as itself, with only what its install consent lists, never as the admin who switched it on: nobody signed in caused a payment's status.

Test and live. The mode comes from the key: test_… is test, live_… is live. Updates and refunds always use the key stored now; a payment made under another key (another account, or test while live is stored) is unknown to Mollie under the new one, so its later updates and refunds fail. Hence the warning on the Payments screen: finish or refund those payments first, or keep the key until they are done. Each payment records the mode it was created in, shown as the Test badge.

What is stored. Per payment: module, reference, amount, refunded amount, currency, description, status, provider, mode, Mollie's payment id, the checkout address, the module's key against double payments and the time it was paid. No card or bank data, and no visitor details. The API key is stored encrypted and never shown in the browser again; if the instance's secret key changes, the API key has to be entered again (Rotating APP_SECRET).

Retention (Data retention). Paid payments are bookkeeping records and are kept seven years by default, as Dutch law requires. Payments never paid (failed, expired or cancelled before payment) are kept 90 days by default.

Audit entries (Audit): each refund (payments.refund), each payment a module cancelled (payments.cancel) and each refused payment webhook (payments.webhook-refused, at most once a minute). Starting a checkout and status updates are not audited by payments; the shop audits its own order changes.

The security alert. Mollie never calls the webhook about a payment this site did not start. When calls to it name no Mollie payment, or one this site never started, in 5 or more minutes of the last 15, the alert Payment webhooks are being refused is raised and emailed to the admins, with the others in Errors and security alerts. It means someone may be trying to fake a payment. Nothing was changed: the module believes only what Mollie itself answers.

Failures.

  • No key stored: the module needs setup, and a module that needs it cannot be switched on. If the key is removed meanwhile, checkouts are refused with "Payments are not set up".
  • The instance has no public API address set: checkouts are refused ("Payments need this instance's public address").
  • Mollie refuses or does not answer within 10 seconds: the payment is marked Failed and the checkout fails with "The payment could not be started: …" (Mollie's own error text, never the key). The shop then marks the order failed and releases its stock.
  • Mollie keeps failing: SHADE stops calling it for a while, 30 seconds at first and at most 5 minutes (Modules). A checkout meanwhile fails at once with "Payments are not available just now. Try again in a few minutes.", and the payment is not marked failed: the shop can start the same payment again. A 4xx from Mollie (a wrong id or key) is an answer and never counts.
  • A report that names no valid Mollie payment is refused. A payment the site does not know is ignored, without saying so.
  • While the site cannot reach Mollie, or the module that started a payment fails to handle it, the payment keeps its old status until a report gets through.

The webhook address. Mollie reports to <SHADE_API_URL>/api/v1/account/payments/webhook, a public route of the module (300 a minute per address). Its body only names a payment (id=tr_…), so the module asks Mollie for that payment and believes only Mollie's answer (Request protection).

For AI assistants

While the module is on, an assistant connected over MCP (AI assistants) has two read-only tools: payments_by_status and payments_recent. They show amounts and statuses, never a checkout address.

For developers

The code and its tests: the README of plugin-payments. How a module starts and refunds payments: Calls between modules.