Skip to main content
Integrating with the Paymove payment gateway consists of four steps: you create a product, register a webhook, assign it to the product, and then create payments via the SDK or REST API.
Working with an AI agent? It does steps 1-3 for you - all it needs is the API key and the partnerId; it asks for the shop name and the remaining fields itself. See Building with AI agents.
The PAYMENT webhook type is deprecated. New integrations should use the TRANSACTION type, which replaces PAYMENT and additionally covers refunds. Existing PAYMENT webhooks continue to work - you can migrate at any time by running both types side by side and comparing the notifications, then deleting the old PAYMENT webhook. Details: Migrating from PAYMENT to TRANSACTION.

1. Create a product

A product represents your store in the Paymove system. All payments and subproducts are created within this product. Example product creation request:

2. Register a webhook

A webhook is a URL on your side that Paymove calls on every transaction status change - both payments and refunds. This way you don’t need to manually check the status - orders can be fulfilled automatically. Example webhook registration request:
To receive the full default payment payload, omit requestTemplate or send "requestTemplate": null (JSON null, without quotes around the value). An empty object {} also means no template. Do not send "requestTemplate": "null", an empty string, or a JSON-encoded template string; a custom template must be a JSON object.

How the webhook works

The TRANSACTION webhook sends a notification on every terminal transaction status change - for both payments and refunds. The type field in the payload tells you whether the notification is about a payment (PAYMENT) or a refund (REFUND). Transaction statuses in Paymove:
A refund arrives as a separate notification with "type": "REFUND" and its own status. The parentOrderId field on a refund points to the payment it reverses.
By default the webhook fires only on terminal statuses (COMPLETED, CANCELED, ERROR). If you need notifications on every status change (including INITIALIZED and PENDING), contact integration@paymove.io to enable it for your product.

Webhook payload

The payload shape depends on whether you set a requestTemplate. Without a requestTemplate (an omitted field, JSON null, or an empty object {}) Paymove sends the full default payment payload. Empty fields are omitted, so a given notification may carry fewer of them:
Example notification for a completed refund:
With a requestTemplate the payload is exactly what your template renders - nothing more, nothing less. For the template in step 2 you receive:
Every field of the default payload is available as a variable:
Values substituted into a text template arrive as strings - "amountMinor": "{{amountMinor}}" yields "1050", not 1050. A variable with no value renders as empty text.
The payload carries only the fields listed in your template. If you need to tell payments from refunds apart, add {{type}} to it - otherwise your endpoint cannot distinguish notifications.

Querying the transaction status

The webhook is the primary notification channel, but you can also query the status of any transaction directly. This is useful when the customer returns to returnUrl before the webhook arrives, or as an additional reconciliation mechanism.
The endpoint returns 403 if the transaction does not exist or belongs to another partner - the same pattern as the refund API.

Delivery guarantees

Webhook delivery is at-least-once - the same notification may arrive more than once. Delivery order is not guaranteed - two notifications about different statuses can arrive in reverse order. Reconcile state on your side using the tuple (type, orderId, status, updatedAt). Fulfil orders idempotently, keyed on externalId - a redelivered notification must never result in shipping the goods twice.

Signature verification

Every webhook request carries an X-Paymove-Signature header. Verify it before trusting the payload - without verification, anyone who knows your URL can impersonate Paymove and have an order fulfilled without paying. Ready-to-copy code for Node.js, Python and Java: Webhook signature verification.

Required response

Your server must respond with an HTTP status equal to expectedCode. The customary body to return alongside it is:
Delivery success is decided by the HTTP status alone, and it must be exactly equal to expectedCode. With the default 200, a 201 or 204 response counts as a failure - and worse, it is not retried: only 4xx, 5xx and network errors trigger the retry schedule. A wrong 2xx loses the notification for good.
The response body is never inspected. expectedResponse is stored on the webhook and echoed back by the API, but it is never compared against what your server returns - any body will do.
If delivery fails, the webhook is retried as many times as retries specifies - 0 by default, meaning not at all. With retries set, the next attempts follow after 1 s, 5 s, 5 min, 1 h, and then every 3 h.
Paymove applies no timeout to webhook calls. Respond immediately and do the actual order processing asynchronously - otherwise a slow endpoint blocks processing.

3. Assign webhook to product

After creating a product and registering a webhook, you need to link them together. This way every transaction event related to this product is automatically sent to the specified webhook URL. Example request:

4. Creating payments

After configuring the product and webhook, you can start creating payments. Choose your integration method:

SDK

Node.js package - initialize the client and call createPayment.

REST API

Direct HTTP calls - works with any language.

PAYMENT webhook (deprecated)

The PAYMENT type is deprecated and will be removed in the future. New integrations should use TRANSACTION. The section below is a reference for existing integrations.
The PAYMENT webhook fires only for payments - it does not cover refunds. Registration is identical to step 2, with one difference: "type": "PAYMENT". Example registration request:

PAYMENT payload

Without a requestTemplate Paymove sends the full payment object:
With a requestTemplate the payload is exactly what your template renders:

PAYMENT template variables

The REFUNDED status is not sent by either webhook type. In TRANSACTION, a refund arrives as a separate notification with "type": "REFUND".

Migrating from PAYMENT to TRANSACTION

The TRANSACTION webhook replaces PAYMENT. Every key from the PAYMENT payload exists in TRANSACTION under the same name, so an existing Handlebars template (requestTemplate) carries over unchanged - all you need is to register a new webhook with "type": "TRANSACTION".

Step by step

  1. Register a new webhook with "type": "TRANSACTION" and the same endpoint (or a separate test one).
  2. Assign it to the same product. A product can have both a PAYMENT and a TRANSACTION webhook at the same time - both will fire.
  3. Compare the payloads. TRANSACTION sends the same data but with additional fields (type, amountMinor, serviceFee, currency, parentOrderId, comment, createdAt, updatedAt).
  4. Once your server correctly handles TRANSACTION, delete the old PAYMENT webhook.

Differences