
n1co for Odoo 19: card payments through n1co business payment links, with signed webhooks and the order status read back from n1co
n1co business - CheckoutLink API - Card payments - El Salvador - Sandbox and production - Signed webhooks - USD
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
n1co business is a payment and online sales platform from El Salvador. This module adds it to Odoo as a payment provider. When the customer pays an order or an invoice, Odoo creates an n1co payment link with the amount (or the order lines) and sends the customer to it. n1co webhooks are checked against their HMAC-SHA256 signature before Odoo reads them, each event is handled once, and Odoo then reads the order from n1co itself, as n1co recommends, and checks the total and the currency before it marks the payment as paid.
| n1co payment link: POST /paymentlink/checkout with the Odoo reference; card details are typed on the n1co page | |
| Order lines or total: send the sales order lines to the payment link, or only the amount | |
| Signed webhooks: X-H4B-Hmac-Sha256 checked on the raw body with your webhook secret key | |
| Each event once: X-H4B-Event-Id is kept, so a resent event changes nothing | |
| Status read back: the order is read from n1co on return, on webhook, on a button and every five minutes | |
| Amount and currency check: the order total and the store currency from n1co must match the Odoo payment | |
| Cancelled orders: a cancelled n1co order cancels the Odoo payment | |
| Sandbox and production: Test mode uses the n1co sandbox host, Enabled uses production | |
| Payment details: order code, order ID, authorization code and the voucher link on the transaction | |
| Link options: link lifetime and branch code | |
| API log: every call and webhook, with buyer details masked |
Who it is for
SHOPS IN EL SALVADOR Businesses with an n1co business account selling on the Odoo website. | COMPANIES THAT INVOICE Send an invoice with a Pay Now link and let the customer pay by card through n1co. | TEAMS THAT SELL BY LINK Create the payment from Odoo and let n1co collect it. |
What it adds to Odoo 19
| Need | Odoo 19 core | With this module |
| Accept n1co payments | Not available | Payment provider with n1co payment links |
| Trust the result | Not available | Signed webhooks and the order read back from n1co |
| A webhook got lost | Not available | Check Status button and a five-minute check |
| Test before going live | Not available | Sandbox host in Test mode |
See it in Odoo
Credentials
Checkout Link secret key, webhook secret key and the webhook URL to add in n1co business.

Options
Store currency, order lines on the link, link lifetime and branch code.

Paying an invoice
The customer opens the invoice and presses Pay Now to go to the n1co payment link.

A paid order
Confirmed after the SuccessPayment webhook: order code, order ID, status and authorization code from n1co.

Transactions
Paid, finalized, pending, cancelled and new payments.

API log
Payment links created, orders read back and webhooks received.

How it works
1 | Copy your keys In n1co business, Settings, Developer options: copy the Checkout Link secret key (sandbox first). |
2 | Fill in the provider Invoicing > Configuration > Payment Providers > n1co. Paste the key and keep the provider in Test mode. |
3 | Add the webhook In n1co business, Settings, Developer options, Webhook: add the URL shown in Odoo and paste the secret key it generates. |
4 | Go live Switch n1co business to production, paste the production key and set the provider to Enabled. |
Settings
| Currencies: the currency of your n1co store, USD in El Salvador | |
| Send Order Lines: products on the payment link, or only the total | |
| Link Lifetime: minutes before the payment link expires | |
| Branch Code: the n1co branch that receives the order | |
| Keep API Log: days of API log kept |
Questions
Does the card number pass through Odoo?
No. The customer types it on the n1co payment link.
Can I refund from Odoo?
No. Refunds are part of the n1co Integration API, whose credentials the n1co team issues. Refund in n1co business and record it in Odoo.
What if n1co reverses a payment?
The reversal webhook is noted on the payment and its documents so you can record the refund.
Which currency?
The currency of your n1co store. Odoo refuses a paid order in another currency.
Where do the screenshots come from?
From an Odoo 19 test database with the n1co answers and webhooks simulated. The n1co payment page itself is not shown.
Compatibility
Odoo 19.0 Community and Enterprise. Depends on Payment and Invoicing (account_payment). Works with eCommerce, the customer portal and payment links.
Questions before you buy?
Write to modvantaapps@gmail.com. We answer on working days, usually within one day.
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