
Take card and mobile money payments in Tanzania through Selcom, on the Selcom page or as a push to the customer's phone.
Selcom | Tanzania | TZS | USD | M-Pesa | Tigo Pesa | Airtel Money | USSD push | Signed webhook | Odoo 19
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Adds Selcom as a payment provider, built on the Selcom Checkout API. Every request Odoo sends carries the Authorization, Timestamp, Digest and Signed-Fields headers Selcom documents, with the digest made from your API secret. You choose how customers pay. On the Selcom payment page they pick a card, Masterpass or mobile money. With the USSD push, Odoo creates the order and sends a payment request straight to the phone number on the customer's address, and they approve it with their wallet PIN. When Selcom calls Odoo back, the webhook signature is checked, then Odoo reads the order status from Selcom to get the amount before it marks the order paid. A status check every 5 minutes catches the rest.
| Signed requests: HMAC-SHA256 Digest over the timestamp and every field in order, as in the Authentication section of the Selcom docs | |
| Selcom payment page: create-order with billing details, your page colours and an expiry; the customer chooses card, Masterpass or mobile money there | |
| USSD push to the wallet: create-order-minimal and wallet-payment to the customer's 255 number; M-Pesa, Tigo Pesa, Airtel Money and other wallets Selcom connects | |
| Signed webhook: API key, timestamp (within an hour) and Digest of the signed fields checked before the body is used; the amount is read back from Selcom | |
| Order status: a button on the payment and a check every 5 minutes, starting 3 minutes after the order, as Selcom advises for pending and in-progress payments | |
| Cancel order: cancel an unpaid order on Selcom from the payment | |
| TZS and USD: whole shillings for TZS; other currencies are stopped before a request is sent | |
| API log: every call and webhook with the Selcom result code; key, digest, names and phone numbers masked |
Who it is for
SHOPS IN TANZANIA Let customers pay with the wallet on their phone or a card. | DELIVERY AND SERVICES Send a push to the customer's phone from a payment link. | SCHOOLS AND CLINICS Collect fees by mobile money and see them paid in Odoo. |
What it adds to Odoo 19
| Need | Odoo 19 core | With this module |
| Selcom as a payment provider | Not included | Payment page or USSD push |
| Webhook check | Not included | Digest checked, amount read back from Selcom |
| Pending payments | Not included | Order status checked every 5 minutes |
| Unpaid orders | Not included | Cancel on Selcom from the payment |
See it in Odoo
Credentials
Vendor ID, API key and API secret (administrators only), the API base URL Selcom gives you, and the webhook URL.

Payment page options
Checkout mode, payment methods, order expiry and the page colours.

USSD push provider
A second Selcom provider that pushes the request to the customer's wallet.

At checkout
A payment link in TZS with both Selcom options. The Selcom page itself opens on Selcom's site, so this shows the Odoo side only.

Paid by webhook
A signed webhook confirmed this card payment.

Wallet push paid
An M-Pesa push confirmed by the status check, with the channel and its transaction ID.

Cancelled by the customer
The Selcom payment status is kept on the payment.

Transactions
Card and wallet payments, one order cancelled from Odoo.

API log
Orders, pushes, webhooks and status checks. The bench had no network, so two status reads failed and Odoo used the signed webhook fields; a webhook with a wrong digest was refused.

How it works
1 | Get your keys Selcom's business team gives you the vendor ID, API key, API secret and the API base URL. |
2 | Set up the provider Invoicing or Website, Configuration, Payment Providers, Selcom: paste the values. |
3 | Pick the checkout mode Payment page, USSD push, or both as two providers. |
4 | Try it Pay a test order in Test mode, then put in the live values and switch the provider to Enabled. |
Settings
| Credentials: vendor ID, API key, API secret (administrators only), API base URL | |
| Checkout: payment page or USSD push, payment methods, order expiry | |
| Payment page: header and button colours | |
| API log: how many days to keep it |
Questions
Which number gets the USSD push?
The phone on the customer's address, turned into the 255 format. If it is missing or not a Tanzanian number, Odoo stops before calling Selcom.
Can I refund from Odoo?
No. The Selcom Checkout API has no refund call. Refund from the Selcom portal and record the refund in Odoo.
Why do I have to type the API base URL?
The public Selcom documentation does not print it; Selcom sends it with your keys.
What if the webhook never comes?
Odoo asks Selcom for the order status every 5 minutes for three days.
Is there a monthly fee?
No. You pay once for the module. Selcom charges you under your own contract.
Compatibility
Odoo 19 Community and Enterprise. Needs the Payment and Invoicing apps; works with eCommerce, the customer portal and payment links. Built on the public Selcom developer documentation and tested with recorded answers.
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