Magento Proxy Pay gateway module: what ProxyPay is and how to set it up
Ask AI about this article
Home / Blog / Magento Proxy Pay gateway module: what ProxyPay is and how to set it up
A Magento Proxy Pay gateway module connects your store to ProxyPay, the Angolan payment platform where customers pay an order by reference through the Multicaixa network: at an ATM, at a POS terminal or through online banking, in kwanza. There is no official ProxyPay module for Magento; two third-party extensions fill the gap, and both are set up in a few fields once ProxyPay has issued your credentials. The part that decides whether it works well is how the order finds out it was paid.
This guide covers what ProxyPay is, how a reference payment flows, how to set up either module on Magento Open Source or Adobe Commerce, and what we'd check before going live. We haven't built a ProxyPay integration ourselves. We have built payment modules on Magento's payment framework, and the problems a pay-by-reference method raises are the ones we've already solved there.
What is ProxyPay?
ProxyPay is a payment platform for Angola, built by TimeBoxed. Its developer documentation lists three separate APIs:
| API | What it does |
|---|---|
| RPS (Reference Payment System), v2 | Your store creates a payment reference for an amount; the customer pays it on the Multicaixa network |
| OPG (Online Payment Gateway) | Requests a payment from the customer's mobile number; the customer needs Multicaixa Express installed |
| DDS (Direct Debit System) | Recurring debits from a customer's account, under a mandate the customer signs first |
The Magento extensions use RPS, the reference system. When a payment comes in, ProxyPay's record says where it was made: ATM, POS, IB (internet banking) or MB.
How does a ProxyPay payment work?
A reference payment is asynchronous. The customer doesn't pay at checkout; they get a reference and pay it later, on their own schedule:
- The customer chooses ProxyPay at checkout and places the order.
- The store creates a reference with ProxyPay (
PUT /references/{id}) for the order's amount, optionally with an expiry (end_datetime). - The customer sees the entity and reference number and pays them at an ATM, at a POS terminal or in online banking.
- ProxyPay records the payment. The store learns about it one of two ways: it polls
GET /paymentsand acknowledges each one withDELETE /payments/{id}, or ProxyPay POSTs the payment to the store's webhook. - The store marks the order paid, and it can ship.
Between steps 1 and 5 the order exists but isn't paid. That gap is the whole design problem, and it's why the module you choose matters more than its settings screen.
A few details from the RPS v2 documentation that a module should respect:
- Requests authenticate with
Authorization: Token <your API key>and pin the version withAccept: application/vnd.proxypay.v2+json. - The sandbox is
https://api.sandbox.proxypay.co.ao; production ishttps://api.proxypay.co.ao. - A webhook is signed: the
X-Signatureheader carries an HMAC-SHA-256 of the raw request body, keyed with your API key, in lowercase hex. - A webhook counts as delivered only on a 2xx answer. Anything else, redirects included, is retried at growing intervals, and the docs warn that the same payment can arrive more than once.
- A reference's
end_datetimegiven as a date alone stays valid until 23:59:59 that day, GMT+1.
Is there a Magento Proxy Pay gateway module?
Yes, two, both from third-party vendors:
- MageComp, Magento 2 Proxy Pay Gateway. Configured with a ProxyPay token, a test or live transaction mode, the accepted currency, the new order status, a debug switch and country rules.
- Meetanshi, Magento 2 ProxyPay Integration. Configured with the entity ID and key ProxyPay issues, a sandbox switch, the title and country rules. Meetanshi lists it for Magento 2.3.0 through 2.4.9 (Community and Enterprise editions) and says it works only with ProxyPay API v2. Its documentation says orders are updated by a cron job, once a day, that asks ProxyPay for payment updates.
Both are Magento 2 extensions, so they target Magento Open Source and Adobe Commerce. Mage-OS runs the same module system, but test there yourself; neither vendor lists it.
How do you set up ProxyPay in Magento 2?
The steps below follow the two vendors' own documentation. Field names differ slightly between them.
- Get your ProxyPay credentials. ProxyPay issues them when you register: Meetanshi's module asks for an entity ID and a key, MageComp's for a token. Ask for sandbox credentials too.
- Set the base currency to kwanza. Both vendors require it; Meetanshi's docs say the gateway "only works with Kwanza". In the admin: Stores > Configuration > General > Currency Setup > Currency Options > Base Currency: Angolan Kwanza.
- Install the extension. From the Magento root:
bin/magento setup:upgrade, thenbin/magento setup:static-content:deploy -fin production mode, thenbin/magento cache:flush. - Configure the payment method. Stores > Configuration > Sales > Payment Methods, then the ProxyPay section:
- Enabled: Yes.
- Title: what the customer sees at checkout, for example "Pagamento por ReferĂȘncia (Multicaixa)".
- Credentials: the entity ID and key, or the token.
- Sandbox Mode / Transaction Mode: sandbox or test for now.
- New Order Status (MageComp): the status an unpaid order waits in.
- Payment from Applicable Countries: usually Angola only.
- Sort Order: where it sits among your other payment methods.
- Test in the sandbox. Place an order, note its reference, and pay it with the sandbox's mock payment call (
POST /paymentswith thereference_idandamount). Then watch how long the order takes to move to paid. If the module polls by cron, that's how long your real customers' orders will wait too. - Switch to production. Swap in the production credentials, turn sandbox or test mode off, and place one real low-value order end to end.
What should you check before going live?
These are the questions we'd ask of any pay-by-reference module, ProxyPay or not:
- How fast does a paid order update? A webhook updates it as soon as ProxyPay delivers the payment; a daily cron can leave a paid order waiting up to a day before anyone ships it. If the module polls, find out whether the interval can be shortened.
- Is the webhook verified? A handler that doesn't check
X-Signaturewill mark an order paid for anyone who can reach the URL. Our Float Payments module refuses any notification it can't verify; hold a ProxyPay module to the same standard. - Is a duplicate payment handled once? ProxyPay says retries can deliver the same payment twice. The second one must not invoice the order again.
- What happens to unpaid orders? References can expire, and stock stays reserved while an order waits. In the Float module, a cron cancels orders left unpaid for a day, scoped strictly to that payment method so it never touches anyone else's orders, and cancels rather than deletes so the attempt stays on record. A ProxyPay store needs the same rule, timed to the reference's expiry.
- Can the customer find the reference? Meetanshi shows it in the customer's account under My Orders. Make sure it's also in the order confirmation email and on the success page, or customers will write in asking how to pay.
- Does it fit your version? Test on your exact Magento Open Source or Adobe Commerce version and PHP version, and repeat the test after every upgrade.
What ProxyPay doesn't do
- It isn't a card checkout. The reference system collects payment after the order, through Multicaixa, not a card form at checkout.
- It doesn't take other currencies. Both modules need a kwanza base currency, so a store selling across currencies needs a plan for that before adding it.
- It doesn't replace your order rules. Expiry, cancellation, stock and the customer's reminder are yours to define in Magento; ProxyPay only tells you when money arrived.
Frequently asked questions
Is there a Magento 2 Proxy Pay gateway extension?
Yes. MageComp sells the Magento 2 Proxy Pay Gateway, and Meetanshi sells Magento 2 ProxyPay Integration. ProxyPay doesn't publish an official Magento module of its own.
Does the Magento Proxy Pay module work with Adobe Commerce?
Both are Magento 2 extensions. Meetanshi lists Magento 2.3.0 through 2.4.9, Community and Enterprise editions, which covers Adobe Commerce on those versions. Test on your exact version before going live.
Which currency does ProxyPay accept?
Kwanza. Both Magento modules require your store's base currency to be the Angolan kwanza.
How does a Magento order know a ProxyPay reference was paid?
Either the module polls ProxyPay for new payments and acknowledges them, or ProxyPay sends a signed webhook to your store. A webhook updates the order as soon as ProxyPay delivers it; a once-a-day poll can leave it waiting up to a day.
Want ProxyPay set up on your store?
We build and maintain payment modules on Magento's own payment framework: the Float Payments module, an open-source PHP SDK for HyperSwitch, and the gateway work described in our guide to payment gateway module development for Magento, Adobe Commerce and Mage-OS. If you want ProxyPay on your store with orders that update the moment a customer pays, verified webhooks and a clean rule for unpaid orders, tell us about your store and your payment setup.