NEWWire DGateway with Claude Code, Cursor or Lovable

The payment gateway
for developers.

One API. Every provider. Collect and disburse across MTN, Airtel, M-Pesa and cards, with failover built in, from Uganda to the rest of East Africa.

Get started free
$curl -X POST $DGATEWAY_API_URL/v1/payments/collect

Test keys are free · no card required · live in under 5 minutes

UGX mobile money routes through Iotec by default.

{ WORKS WITH }

MMTN MoMo
aAirtel Money
iIotec
rRelworx
SStripe
WWordPress
WWooCommerce
FFramer
▲Next.js
MM-Pesa

{ QUICK START }

Integrate
in minutes,
not weeks.

One REST endpoint collects and disburses across MTN, Airtel and Stripe. Your server holds the key; the browser never talks to DGateway directly.

  • Same request for every provider. Pass provider or let DGateway pick by currency.
  • Test with dgw_test_ keys and test numbers, then swap the prefix to dgw_live_.
  • Get the result by webhook, or poll the status every 10 seconds.
// Server-side only: the API key never reaches the browser
export async function POST(req: Request) {
  const { amount, phone } = await req.json();

  const res = await fetch(`${process.env.DGATEWAY_API_URL}/v1/payments/collect`, {
    method: "POST",
    headers: {
      "X-Api-Key": process.env.DGATEWAY_API_KEY!,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ amount, currency: "UGX", phone_number: phone, provider: "iotec" }),
  });

  return Response.json(await res.json());
}

200 · response

{
  "data": {
    "reference": "dgw_ref_8f2c…",
    "status": "pending",
    "provider": "iotec"
  }
}

webhook · callback_url

… status: pending · sent to vendor

{ HOW IT WORKS }

From sign-up to live payments.

Six steps, most of them done in an afternoon. Verification can be fast-tracked on a short WhatsApp call.

01

Sign up

Verify your email and create your first app. No card required.

02

Submit KYC

National ID or passport, a phone number in your name and business details.

03

Fast-track on WhatsApp

Optional 15-minute video call covering KYC and withdrawal approval.

04

Test for free

Generate dgw_test_ keys and run the full flow with test numbers.

05

Activate the API

One-time UGX 150,000 per app. Hosted-store sellers skip this.

06

Go live

Swap dgw_test_ for dgw_live_. Only the key prefix changes.

DGATEWAY_API_KEY= dgw_test_4f9a…c21e

the only line that changes

{ PROVIDERS }

Three providers.
One integration.

DGateway holds the provider credentials and contracts. You get every rail through the same request and the same webhook.

MTNairtel

Iotec Uganda

MTN and Airtel Mobile Money

UGX
Collect · Disburse
MTNairtelM-PESA

Relworx East Africa

Multi-country mobile money, including M-Pesa

UGXKESTZSRWF
Collect · Disburse
VISA●●

Stripe Worldwide

Visa, Mastercard and other cards

USDEURGBPKESUGX
Collect

3

PAYMENT PROVIDERS

7+

CURRENCIES

4

EAST AFRICAN COUNTRIES

<5 min

TO INTEGRATE

{ FEATURES }

Payments that keep working
when a provider doesn't.

Health checks, automatic failover, signed webhooks with retries and a sandbox that behaves like production.

Built-in failover

DGateway monitors every provider line and reroutes traffic when one goes down. Check it yourself: GET /api/provider-health, no auth needed.

MTN · Iotec
healthy
Airtel · Iotec
healthy
M-Pesa · Relworx
healthy
Cards · Stripe
healthy

Webhooks with retry

Pass a callback_url on collect or disburse. The final event is retried until your endpoint returns 200.

+0s503retrying…
+30s503retrying…
+2m200delivered

A sandbox with test numbers

Every outcome on demand, with test keys only.

011177777xsuccess
011177799xfailed
011177778xpending
011177779xSentToVendor

Status polling

No webhook endpoint yet? Poll by reference every 10 seconds, up to 30 attempts.

attempt 7 → completed

Subscriptions

Daily, weekly, monthly or yearly plans. Resume, cancel and charge each cycle by API.

activetrialingpausedpast_duecancelled

Payouts and withdrawals

Disburse to phones or bank accounts. Withdrawals are paid out immediately and listed with filters and pagination.

POST /v1/payments/disbursePOST /v1/withdrawalsGET /v1/wallets

Errors you can act on

One error envelope, explicit codes and a failure_reason on every failed transaction.

INVALID_PHONEPROVIDER_LINE_DOWN · 503INSUFFICIENT_BALANCERATE_LIMIT · 429

{ BUILD WITH AI }

Let your
coding agent
wire it for you.

Answer three questions and copy a prompt for Claude Code, Cursor or any coding agent — it asks about your stack before it writes any code.

1 · Platform

2 · Payment type

3 · Currencies

Claude CodeCursorWindsurfLovablev0BoltReplit
prompt.md
free · no sign-up
Integrate DGateway into my web app to collect payments from customers in UGX.

Before writing code, ask me:
1. My framework and backend language
2. Where the server-side API routes live
3. Whether I can expose a public webhook URL

Rules:
- Keep DGATEWAY_API_KEY server-side only (never NEXT_PUBLIC_)
- Use dgw_test_ keys and the test numbers first
- Handle webhooks idempotently; poll status no faster than every 10s

Docs: https://dgateway.desispay.com/docs/llms▌

Paste into your agent. It asks about your stack first.

{ NO CODE NEEDED }

Not a developer?
Sell anyway.

The hosted store gives creators, schools and NGOs a ready storefront on the same rails: no connection fee, just a commission on each successful sale.

Payment links
Digital products
Online courses
Events & tickets
Templates
Video streaming
Organizations
Coupons & flash sales
Bundles
Link in bio
Analytics dashboard
Landing page builder
Affiliate program
Customer portal
Email marketing
AI content assistant

{ PRICING }

Pay when you get paid. Nothing monthly.

Commission applies only to successful transactions. Failed or pending payments are never charged. Test mode is free.

Hosted store

Freeto start

No setup or connection fee. Pay commission per successful sale.

  • Products, courses, events, templates
  • Payment links and link in bio
  • Customer portal and email marketing
Start selling

API connection

For developers

UGX 150,000one-time / app

Unlocks live dgw_live_ keys. Then 8% per successful transaction.

  • Collections, disbursements, subscriptions
  • All providers through one API
  • Unlimited key rotation
  • Test keys always free
Get API keys

Integration support

From UGX 350,000per project

We integrate DGateway into your product for you. Quote depends on complexity.

  • Full integration and checkout UI
  • Testing and QA
  • Post-launch support
Request a quote

Commission per successful transaction

8%

API

10%

Events

12%

Store products

13%

Templates

15%

Courses

{ FAQ }

Questions,
answered.

The ones developers ask before their first payment. There are 30+ more on the FAQ page.

All FAQs

Create an app and generate a dgw_test_ key. Test keys work with the test phone numbers (for example 0111777771 succeeds and 0111777991 fails). When you are ready, swap the key prefix to dgw_live_; nothing else changes.

Support

{ WHY IT EXISTS }

“I built DGateway because every payment gateway I tried got in my way.”

Poor docs, slow verification, and a cut taken from every course sale. So the docs come first, verification can happen on a 15-minute call, and the pricing is on this page.

JB

Muke Johnbaptist (JB)

Creator of DGateway and Grit · Desishub

Your first payment,
before lunch.

Create an app, grab a test key and run a collection against a test number. No card, no call needed.