2C2P Payments: cards, QR and wallets for Southeast Asia
by Aerya IT Solutions https://aerya.net$ 54.79
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
2C2P Payments: cards, QR and wallets for Southeast Asia
Let customers pay your Odoo orders and invoices through 2C2P: cards with 3-D Secure, PromptPay, PayNow, GrabPay, ShopeePay, GCash, FPX, DuitNow, QRIS and the other channels of your merchant account, on the 2C2P payment page. Odoo creates the payment through the 2C2P API, follows it by notification and by status checks, confirms it only after reading it back from 2C2P, and refunds from the payment transaction.
Every notification is checked with your secret key and the result is read back from 2C2P before Odoo accepts it, amount and currency included
Works without a public address too: open payments are checked on a schedule
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 17 Enterprise, with the data of a fictitious company; the payments were made on the 2C2P sandbox.
every result code, forged and repeated notifications, late payments, wrong amounts and currencies, refunds and cancellations, lost answers, unreachable servers, recorded answers of the 2C2P sandbox, and every screen in a browser
no warnings, on the four versions
Community and Enterprise
Cards, QR codes and wallets on one page
After choosing a method in the Odoo checkout the customer lands on the 2C2P page with that channel open (card, PromptPay, PayNow, DuitNow, QRIS, GrabPay, ShopeePay and more); any other choice shows every channel of your account. Singapore dollar, Malaysian ringgit, Thai baht, Indonesian rupiah, Philippine peso, Vietnamese dong, Hong Kong dollar and Myanmar kyat, with the decimals each one allows.
Payment links, invoices, the shop and the customer portal: every flow of the Odoo payment module.

Confirmed by 2C2P, not by the notification
Each request is signed with the secret key of your merchant account. A notification without the right signature gets a 403 and nothing is read; a valid one only makes Odoo check the payment with 2C2P, and the result that counts is that answer, amount and currency compared with the order. The form the customer's browser posts back is never trusted either.
The return page and a scheduled action (every 5 minutes) check open payments, so a shop that 2C2P cannot call still gets its payments. A payment confirmed after Odoo had closed it is accepted.

Refunds from Odoo
With the key pair of your own merchant account, full or partial refunds from the payment transaction, encrypted and signed as 2C2P requires. A payment that is not settled yet is cancelled when the whole amount is refunded. The refund stays pending until 2C2P reports it done or failed; a request whose answer was lost is sent again with the same key and refunds only once.

Your account, your keys
Each provider holds the merchant ID and the secret key of a 2C2P account (and the refund key pair), readable by administrators only. A button checks the connection. In test mode the button Use the 2C2P demo merchants switches to the demo merchants 2C2P publishes for tests, one per currency: nothing to enter.

More screenshots

A payment whose 3-D Secure step failed: the transaction records why

Payment transactions of a Singapore shop
How it works
Open a 2C2P merchant account for your country and note its merchant ID and secret key (and, for refunds, upload your public key in the portal and download the 2C2P public key).
Install the module and open Payment Providers › 2C2P: enter the merchant ID and the secret key.
Stay in Test mode with the demo merchants and pay an order with the test card, then switch to Enabled with your live account.
Follow every payment, and refund it, from the payment transaction.
Compatibility
| Versions | Odoo 17, 18, 19, 20 |
| Editions | Community and Enterprise |
| Hosting | Odoo.sh and on-premise (Python module) |
| Requires | Payment (payment) |
| Languages | English, Thai, Indonesian, Malay, Vietnamese |
Good to know
2C2P calls your shop back at an address Odoo sends with every payment, so the shop needs a public https address; without it the result is checked on a schedule. The test and the live account have different keys, and a merchant account is bound to one currency by 2C2P. Refunds need the key pair of your own merchant account, and 2C2P only refunds payments that are settled. Refunds, cancellations and the notifications 2C2P sends to your shop were checked against a stand-in for 2C2P, not against 2C2P itself: the demo merchants have no portal account and a test server has no public address.
Not covered: saved cards and recurring payments, instalments, manual capture, sub-merchants, payouts.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 20, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1589 |
| Technical Name |
aerya_payment_2c2p |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module