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
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
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
Handle events payment.updated, payment.confirmed, invoice.paid, settlement.completed. Return HTTP 2xx within 15s.
- 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
Full API: API docs · OpenAPI explorer.