2C2P Payment Gateway - PromptPay, Thai QR, PayNow, GrabPay, GCash, FPX | 2C2P Payment Provider
by Modvanta https://modvantaapps.tech/odoo-apps/payment-2c2p/$ 29.91

Accept 2C2P payments in your Odoo shop and invoices - cards, QR codes, wallets and counter payments
Customers pay on the 2C2P payment page and come back to Odoo with the order confirmed. Refunds, payment status checks and every call to 2C2P are handled and logged in Odoo. A built-in demo mode lets you test the whole flow without a 2C2P account.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
This module adds 2C2P as a payment provider in Odoo. At checkout the customer chooses the 2C2P payment page (all channels) or a single method such as card, and is sent to 2C2P to pay. When they return, Odoo asks 2C2P for the result and confirms the order, shows a clear message for a declined card, or keeps the payment open for channels that are paid later.
On the provider you enter the merchant ID and secret key, choose the region and timezone, 3-D Secure, whether the customer's details are prefilled and the payment deadlines for online and counter or ATM channels. Refunds, voids and captures from Odoo use a key pair you upload once.
Each transaction shows the 2C2P invoice number, response code and description, channel, agent, masked card, approval code and reference, with a Check Status at 2C2P button and a link to its API log. The API log records every request and notification with masked secrets. Demo mode simulates 2C2P inside Odoo: no call leaves the database and no money moves.
Who it is for
Shops selling in Southeast Asia Take cards, QR payments, wallets and counter payments through 2C2P on your Odoo website. | Businesses invoicing online Let customers pay invoices from the customer portal with 2C2P. | Teams that need to test first Run the whole flow in demo mode before you have your 2C2P merchant account. |
Key features
Every screen below is the module running on Odoo 19 with its demo mode, which simulates 2C2P inside Odoo; placeholder credentials were used and no money moved.
Feature 1
2C2P at checkout
The 2C2P payment page (all channels) and card appear as payment methods on the Odoo checkout, secured by 2C2P.

Feature 2
The 2C2P payment page (demo)
In demo mode a page stands in for 2C2P with the invoice number, description, amount, channels and deadline, and buttons to pay by card, decline, pay with a wallet, show a QR code or get a payment slip.

Feature 3
Payment confirmed
Back on the website the order is confirmed and the customer sees that the payment has been processed.

Feature 4
Declined payments explained
A refused card shows the reason and code from 2C2P, here Do not honor (4005), so the customer knows what happened.

Feature 5
Credentials and keys
Merchant ID, secret key, demo mode, region and timezone, plus the merchant private key and 2C2P public key needed for refunds, voids and captures.

Feature 6
Payment page and deadline options
3-D Secure, prefill the customer, send a payment deadline, deadlines for online and counter or ATM channels, and how long to keep the API log.

Feature 7
Transactions, including refunds
Confirmed, declined and open 2C2P transactions with the refund R-S00042 of 100.00 made from Odoo.

Feature 8
2C2P details on the transaction
Invoice number, response code and description, channel, agent, card, approval code, reference and payment ID, the refund as child transaction, and Check Status at 2C2P.

Feature 9
API log
Every payment token request, customer return, payment inquiry and refund with the invoice number, transaction, response code, HTTP status and signature check.

Feature 10
Log entries with masked secrets
The request and response of each call. Payment tokens, customer tokens and e-mail addresses are masked before they are stored, and the secret key is never logged.

How it works, step by step
| 1 | Install the module 2C2P is added to Invoicing / Website -> Payment Providers. |
| 2 | Try demo mode Tick Demo Mode and set the provider to Test to pay orders on the simulated page. |
| 3 | Enter your 2C2P account Untick demo mode and enter your merchant ID and secret key; upload the key pair for refunds. |
| 4 | Choose methods and options Enable the payment methods, 3-D Secure, prefill and deadlines. |
| 5 | Go live Enable the provider. Customers pay on 2C2P and orders are confirmed in Odoo. |
Settings
On the 2C2P payment provider.
| Credentials | Merchant ID, secret key, region, timezone, demo mode. |
| Refund, void and capture keys | Merchant private key and password, 2C2P public certificate. |
| Payment page | 3-D Secure, prefill the customer. |
| Payment deadline | Send a deadline, minutes for online channels, hours for counter and ATM channels. |
| API log | Number of days to keep the API log. |
| Payment methods | 2C2P payment page with all channels, or single methods such as card. |
Frequently asked questions
Can I test without a 2C2P account?
Yes. Demo mode simulates 2C2P inside Odoo. The screenshots on this page were taken in demo mode with placeholder credentials.
Can I refund from Odoo?
Yes, after you upload the merchant key pair. Partial refunds are supported, as the refund of 100.00 shown here.
What does the customer see when a card is declined?
The reason and code returned by 2C2P, for example Do not honor (4005).
Are QR and counter payments supported?
The 2C2P page offers them, and an unpaid QR or slip stays open until 2C2P reports the payment or the deadline passes.
Is sensitive data stored in the log?
No. Tokens and e-mail addresses are masked and the secret key is never logged.
Compatibility
Odoo 19 Community and Enterprise | Works with eCommerce, invoices, customer portal | Gateway 2C2P payment page | Tested 237 automated tests |
Take 2C2P payments in Odoo
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Module, setup help by e-mail, Odoo 19 updates |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 2470 |
| Technical Name |
mdv_payment_2c2p |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/payment-2c2p/ |
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