Skip to content
All integrationsModX

Accepting payments on a ModX site

How it connects
Payment link, no module
What you need
A link on a button or an API integration

We have no ready-made payment module for ModX. There are two working paths: the quick one is a payment link on a button, and the thorough one is an API integration your developer builds into the site or into an add-on such as miniShop2.

Two ways to connect

  • A payment link. Create a payment in the dashboard and put the address on a button. Nothing to program, but the ModX order status does not update.
  • An API integration. The payment is created from your server, and the payment notification updates the order status automatically.

What to keep in mind

  • With the API, verify the notification signature before changing an order.
  • Keep keys in environment variables rather than in chunks and templates.
  • You can start with a link and move to the API once sales grow.

What the payment API can do and which SDKs exist is on the payment API page.

Installation

  1. 1Pick the scenario: a link suits occasional sales, the API suits a full store.
  2. 2For a link, create a payment in the dashboard and put the address on a button in a template or chunk.
  3. 3For the API, get the keys in the store keys section and create payments from your server.
  4. 4Set up a notification handler if you go the API route — it will change the order status.
  5. 5Test the whole scenario: a successful payment, a decline and a refund.

What to fill in

  • The amount and purpose

    when creating a link

  • API Key, Shop ID and the secret key

    for an API integration

  • The notification handler address

    for the API scenario only

Common questions

ModX sites differ a lot in structure: a store is assembled from add-ons and templates for the task at hand. A universal module would help few people there, so we describe two paths — a link and an API integration.

Other platforms

All CMS and platform integrations

Need help with the integration?

Write to us — we will help install the module and verify that payments work.

Let’s talk about your project

Setup, pricing or support — choose the way you prefer to get in touch.

Write to the team

Your name and one contact are enough. Add details if you wish.

How should we contact you?

By clicking the button you agree to the processing of personal data.

TelegramTelegram