Skip to content
Meem Payment

Meem Connect

One API across every payment provider you contract with

Connect your existing PSP accounts once and use a single, consistent API for authorisations, captures, voids and refunds. You keep your contracts and your pricing; Meem keeps the integrations, the health checks and the normalised responses.

Unified APIAvailableGateway accountsAvailable4 PSP adaptersSandboxRegional PSPsPlanned
Gateway accounts · sample merchant
Illustrative
One API
/api/v1

Your PSP accounts

  • PSP account ASandbox
  • PSP account BSandbox
  • PSP account CSandbox
  • PSP account DSandbox
Illustrative UI · sample values, not product data

What it does

A connectivity layer that sits on top of your PSP relationships

Every PSP has its own API, error codes, webhook format and quirks. Meem Connect puts one well-defined API in front of them, so adding or swapping a provider becomes configuration instead of a new integration project.

  • One API, consistent semantics

    Authorize, purchase, capture, partial capture, void, refund and partial refund through the same REST endpoints, with idempotency and correlation built in.

  • Your accounts, your contracts

    Each merchant registers its own gateway accounts. Credentials are encrypted per account and are write-only: they are never returned by the API or the console.

  • Operational visibility

    A health monitor, a per-account circuit breaker and an eligibility service explain which account can take a payment, and why another one can't.

Capabilities

Everything needed to run several PSPs as one

The connectivity features below are labelled with their current status. Adapters are built but have not yet completed a live sandbox round-trip with merchant credentials.

What the labels mean
Available
Implemented in the platform today.
Sandbox
Integration built; verification against the provider's sandbox with your credentials is pending.
Simulated
Available as a labelled simulation for demos and testing only. No real provider is called.
Planned
On the roadmap. Not available yet.
  • Available

    Unified payments API

    REST API under /api/v1 with OAuth 2.0 client credentials, idempotency keys and correlation ids on every call.

  • Sandbox

    PSP adapters

    Adapters for authorize, purchase, capture, partial capture, void, refund, partial refund, status, health check and credential verification.

  • Sandbox

    Regional PSP expansion

    Seven more regional adapters, including two BNPL providers, are available in sandbox, tested against mocks and not yet verified live. STC Pay is routed as a method through PSP accounts that have it enabled. The integrations directory lists each one.

  • Available

    Merchant gateway accounts

    Several accounts per PSP, each with its own priority, currencies, card schemes, methods, countries and allowed operations.

  • Available

    Sandbox and production separation

    Separate accounts per environment with their own credentials, endpoint and webhook secret. The two never fall back to each other.

  • Available

    Health monitoring

    Checks every 60 seconds with 3-fail / 2-success hysteresis, alerts on state changes, and a per-account circuit breaker.

  • Available

    Eligibility explanations

    The eligibility service states why an account is or isn't eligible for a payment, across 12 reason types.

  • Available

    Decline normalisation

    64 provider decline mappings into one set of codes and categories. Unmapped codes are treated as hard declines.

  • Available

    Verified PSP webhooks

    Inbound webhooks are verified per provider and rejected when verification fails (fail-closed).

Gateway accounts

Model your real provider setup, account by account

A merchant can hold several accounts with the same PSP, for example one per currency or per business line. Each account declares what it can do, and routing only ever sends a payment to an account that can take it.

  • Per-account priority, currencies, schemes, methods, countries and operationsAvailable
  • mada is off by default and enabled per account where your PSP contract allows itSandbox
  • An account activates only after a passing Test Connection; production also requires a Verified resultAvailable
  • Credentials encrypted with AES-256-GCM, write-only and never returnedAvailable
  • Sub-accounts inherit workflows and checkout profiles, never credentialsAvailable
How credentials are protected
Gateway account · sample
Illustrative

Sample account A

Sandbox
Priority1
CurrenciesSARAED
SchemesVisaMastercardmada
Operationsauthorizecapturerefund
CredentialsEncrypted · write-only
Test Connection: Passed
Verified (required for production)
Illustrative UI · sample values, not product data

Health and eligibility

Know which account can take a payment, and why

Connect continuously checks every active account and keeps a circuit breaker per account. When routing evaluates a payment, the eligibility service records the reason each account was included or excluded, so the routing trace reads like an explanation, not a guess.

  • Health checks every 60 s with 3-fail / 2-success hysteresis to avoid flappingAvailable
  • Alerts when an account changes stateAvailable
  • Per-account circuit breaker, held in memory per instanceAvailable
  • 12 eligibility reason types, such as currency, scheme, method or healthAvailable
  • Platform-wide provider catalogue and capability matrixAvailable
See eligibility in the routing simulator
Eligibility for a sample payment
Illustrative
  • PSP account ACurrency supported · healthyEligible
  • PSP account BCurrency not configuredExcluded
  • PSP account CCircuit open · health check failingExcluded
  • PSP account DScheme not enabledExcluded

Health check every 60 s · 3 fails down / 2 successes up

Illustrative UI · sample values, not product data

Normalisation

One response model, whatever the provider says

Every PSP reports declines and statuses differently. Connect maps provider responses into a single set of codes and categories that routing, failover, recovery and reporting all share. When a code isn't mapped, it is treated as a hard decline, which is the safe default.

  • 64 provider decline rows plus simulator rows, mapped to normalised codes and categoriesAvailable
  • Soft and hard declines drive failover and recovery decisions consistentlyAvailable
  • PSP endpoint host allowlist, fail-closedAvailable
  • Inbound webhook verification per provider: HMAC signatures, signed phrases or encrypted payloads, failing closedAvailable
  • PAN and CVV redacted in logs and captured API callsAvailable
Read the error model
Decline normalisation · sample codes
Illustrative
Provider responseNormalised
PSP A · code 05do_not_honorSoft decline
PSP B · insufficient fundsinsufficient_fundsSoft decline · ineligible
PSP C · stolen cardstolen_cardHard decline
PSP D · unmapped codeunmappedHard decline (default)
Illustrative UI · sample values, not product data

How it works

From your PSP contract to a routed payment

  1. Step 1

    Add your gateway account

    Choose a provider from the catalogue and enter the credentials from your own PSP contract. They are encrypted and never shown again.

  2. Step 2

    Test the connection

    Run Test Connection. The account activates only when it passes; production accounts also need a Verified result.

  3. Step 3

    Declare capabilities

    Set the account's priority, currencies, schemes, methods, countries and allowed operations.

  4. Step 4

    Call one API

    Create payments through /api/v1/payments. Routing picks an eligible account and every attempt is traced.

Technical details

Built for engineers who have integrated a PSP before

A REST API with explicit idempotency, correlation and error semantics. The code samples use raw HTTP; there are no published client libraries yet.

Relevant API endpoints

  • POST/api/v1/auth/tokenOAuth 2.0 client credentials; returns a short-lived merchant-scoped token
  • POST/api/v1/paymentsAuthorize, or purchase with capture: true
  • POST/api/v1/payments/{id}/captureFull or partial capture
  • POST/api/v1/payments/{id}/voidVoid an authorisation
  • POST/api/v1/payments/{id}/refundFull or partial refund
  • GET/api/v1/payments/{id}Payment status
  • GET/api/v1/payments/{id}/routing-traceWhich accounts were eligible and why
  • GET/api/v1/payments/{id}/api-callsRedacted PSP calls for the payment
  • POST/api/v1/webhook-endpointsRegister an outbound webhook endpoint
# Illustrative request. See the API reference for the full schema.
POST /api/v1/payments HTTP/1.1
Host: api.meem.example
Authorization: Bearer <merchant-scoped token>
Idempotency-Key: order-10045-attempt-1
X-Correlation-Id: 7f1c2e9a-sample
Content-Type: application/json

{
  "amount": 15000,
  "currency": "SAR",
  "capture": true,
  "reference": "order-10045"
}

# Replaying the same Idempotency-Key returns the original response.
# Then inspect routing: GET /api/v1/payments/{id}/routing-trace

Specifications

Authentication
OAuth 2.0 client credentials (form, JSON or HTTP Basic), lockout after repeated failures
Idempotency
Idempotency-Key per merchant and endpoint; replay returns the original response, 409 while in flight, 422 on body mismatch
Errors
402 decline or risk block, 422 validation with a code, 409 conflict, 404 unknown or cross-tenant, 502 gateway failure
Outbound webhooks
HMAC-SHA256 signature, retries with exponential backoff, manual replay, SSRF guard
PSP adapters
Regional and international PSPs (see the integrations directory)Sandbox
Client libraries
No published SDKs or native mobile SDKs yetPlanned

Frequently asked questions

Questions about Meem Connect

Bring your PSP accounts. Leave the integrations to us.

Walk through gateway accounts, health monitoring and the unified API with our team, using the providers you already work with.