Skip to content
All integrationsInSales

Accepting payments on InSales | MULENPAY

InSales connects not through a plugin but through a small Node.js relay service: the store sends the buyer to its address, the service creates the payment in MulenPay, and after payment it records the transaction on the InSales order.

How the flow works

  1. The buyer places an order and picks MulenPay as the payment method.
  2. InSales redirects them to your service at /payments/pay with the order parameters.
  3. The service creates the payment in MulenPay and redirects the buyer to the payment page.
  4. After payment MulenPay posts a notification to /webhooks/mulenpay.
  5. The service creates a transaction on the matching InSales order.

The link between payment and order rests on the InSales order id — it is passed in the uuid field when the payment is created.

What you need to run it

  • A server with Node.js 18 or newer, reachable from the internet over HTTPS.
  • MulenPay credentials: API key, shop id and the signing secret.
  • InSales API credentials: store domain, key and application password.

What to keep in mind

The service is a separate application, not a store extension: it has to live somewhere and stay up. If it goes down, buyers cannot reach the payment page, and notifications about payments already made never reach the orders.

For simpler cases look at the payment API directly or at payment links — neither needs a server of your own.

Installation

  1. 1Deploy the service from the in_sales folder on a server with Node.js 18 or newer.
  2. 2Fill in the environment variables following .env.example.
  3. 3Set the MulenPay credentials — API Key, Shop ID and the signing secret.
  4. 4Add the InSales API credentials — store domain, key and application password.
  5. 5In the InSales payment method settings, point to the /payments/pay address of your service.
  6. 6Set the webhook address in your MulenPay dashboard.

What to fill in

  • MulenPay API Key, Shop ID and signing secret — from your dashboard
  • InSales store domain — the address of your store
  • InSales API key and application password — access to the store API

Webhook

So your store learns the payment status, set this address as the webhook URL in your MulenPay dashboard:

https://your-service.com/webhooks/mulenpay

Common questions

No. The integration relies on a middleman service that creates the payment and records the transaction on the order. If you would rather avoid a server, use a payment link or the API directly.

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.

Telegram bot

@Mulenpay_support_bot

Quick answers 24/7

Legal address

RBY Commerce Ltd.

8 Copthall, Roseau Valley, 00152, Commonwealth of Dominica

Leave a request

Fill out the form — a manager will get in touch, tailor the terms and help with the integration.

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

TelegramTelegram