Odoo 19 app

Mangopay Payment Gateway

Take card payments through Mangopay and keep each customer in their own wallet.

Mangopay for Odoo 19

What it does

Odoo creates the Mangopay payer user and wallet the first time a customer pays, sends them to the hosted Mangopay card page, and reads every result back from the API. Refunds, wallet transfers to sellers and bank payouts are done from Odoo by an accounting manager.

You paste your Mangopay Client ID and API key. Odoo asks Mangopay for an OAuth token and reuses it until shortly before it runs out, as the Mangopay docs ask. Test mode talks to the Mangopay Sandbox, Enabled talks to production.

When Marta pays an invoice of EUR 347.50, Odoo creates a natural payer user for her (or a legal payer for a company, with the contact as legal representative), opens a EUR wallet in her name and starts a Web Card PayIn. She types her card on the Mangopay page, 3-D Secure included. Her next payment reuses the same user and wallet.

Mangopay hooks are not signed, so the module never trusts them. Each provider gets a hook URL with a long random secret; when a hook arrives, Odoo only takes the resource ID and reads the pay-in, refund, transfer or payout again from the API. The return page and a 30-minute check do the same.

For marketplaces, link your sellers by their Mangopay user, wallet and recipient IDs. An accounting manager can move part of a paid order from the customer wallet to a seller wallet, keep a platform fee, and pay the seller wallet out to the bank. Nothing moves on its own.