Odoo 19 app

ZainCash Payment Gateway Iraq

Let customers in Iraq pay Odoo orders and invoices from their ZainCash wallet.

ZainCashIraqIQDMobile walletJWT HS256Signed return tokenStatus check

What it does

Adds ZainCash as a payment provider. At checkout, on a portal invoice or on a payment link the customer picks ZainCash, Odoo creates the transaction on ZainCash with a request signed with your merchant secret, and the customer pays on the ZainCash page with their wallet number, PIN and one-time code. ZainCash sends the customer back with a signed token. Odoo checks that signature, the expiry and the ZainCash transaction ID before it marks the order paid. If the customer's connection drops on the way back, a check every 15 minutes asks ZainCash for the status, for the two days ZainCash keeps a transaction open.

Features

Transaction from Odoo/transaction/init with a JWT (HS256) holding the amount, order reference, your wallet number and the return address
Signed return tokenHS256 checked with a constant-time compare, expired tokens refused, and the token must name the ZainCash transaction stored on the payment
Check on ZainCasha button on the payment and a check every 15 minutes for payments still pending
Test and livetest.zaincash.iq while the provider is in Test mode, api.zaincash.iq once Enabled
IQD ruleswhole dinars from 250 IQD, as ZainCash requires; anything else is stopped before a request is sent
Page languageArabic or English, or the customer's language
Service typethe text the customer sees on the ZainCash page, with the order reference added
API logevery request and return with the ZainCash status; the token, secret and wallet numbers are masked