Guides

Integration guides

Opinionated paths that mirror how production merchants wire MZA Payments into carts and billing systems.

Start here

Five paths to go live

Guide 01

IPN for WooCommerce / Shopify / custom apps

IPN callbacks: HTTPS path (not homepage), verify X-Mza-Ipn-Signature, mark orders paid on payment.confirmed.

  1. 1

    In Dashboard → Webhooks set IPN URL to a path that accepts POST (e.g. https://yoursite.com/api/mza-ipn). Homepage URLs are rejected.

  2. 2

    Copy your IPN secret. Verify every request with header X-Mza-Ipn-Signature (HMAC-SHA512 of sorted JSON) or X-Mza-Signature (HMAC-SHA256 of timestamp.body).

  3. 3

    Handle events payment.updated, payment.confirmed, invoice.paid, settlement.completed. Return HTTP 2xx within 15s.

  4. 4

    WooCommerce / Shopify: create a small middleware that maps payment.confirmed → order paid using orderId from the invoice payload. Use Test delivery in the dashboard.

  5. 5

Guide 02

Issue your first invoice

Create a LIVE key, set a payout wallet, and send buyers to hosted checkout.

  1. 1

    Create a LIVE API key in Dashboard → API keys.

  2. 2

    Set one payout wallet (e.g. USDT BEP-20) under Dashboard → Payout wallets.

  3. 3

    POST /api/v1/invoices (HTTP 201) with your order id, amountDue, and currency. The response names your id merchantOrderId. Response orderId is the public MZA- code.

  4. 4

    Redirect the customer to data.invoice.checkoutUrl (e.g. /pay/MZA-##########).

  5. 5

    They pick any listed coin; after confirm, funds convert to your payout wallet. Fulfill on IPN payment.confirmed / invoice.paid.

Guide 04

Webhooks you can trust

IPN secret signing so your server only trusts real payment events.

  1. 1

    Open Dashboard → Webhooks / IPN and copy your IPN secret (Show / Copy / Regenerate).

  2. 2

    Add your HTTPS IPN URL and subscribe to payment.confirmed, invoice.paid, and optionally payment.updated / settlement.completed.

  3. 3

    Verify X-Mza-Ipn-Signature = HMAC-SHA512 of recursively key-sorted JSON (Node / PHP / Python samples in API docs).

  4. 4

    On payment.confirmed / invoice.paid, fulfill the order. Use delivery id for idempotency; re-check GET /api/v1/payments/{id|MZA-…} if needed.

  5. 5

    Use Test delivery in the dashboard. That sends a fake webhook, not a simulated payment. Failed IPNs are tried 5 times immediately, then on a schedule, up to 10 attempts.

Guide 05

Any-coin deposit → one payout

Accept many assets at checkout; settle to a single wallet.

  1. 1

    Configure a single settlement address (USDT BEP-20 recommended).

  2. 2

    Leave cryptoCurrency unset on invoices so checkout shows all supported coins.

  3. 3

    Customer pays with BNB (or another asset); after confirmation, convert + platform fee apply and USDT lands in your payout wallet.

Need the full endpoint map?

Browse auth, invoices, payments, estimates, and webhook schemas — or try calls live in Swagger.