Skip to content
All integrationsInSales

Accepting payments on InSales

How it connects
Payment-creation method for a developer
What you need
Your own server with Node.js 18 or newer
Keys from the dashboard
MulenPay API Key, Shop ID and signing secret, InSales store domain, InSales API key and application password

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.

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