Qi Card Payment Gateway Iraq - Hosted Payment Form, 3-D Secure, Refunds | Qi Card Payment Provider
by Modvanta
Odoo
$ 44.87

Qi Card for Odoo 19: take card payments in Iraq on the Qi Card payment form
Qi Card API v1 - Hosted form with 3-D Secure - Refunds - IQD - Odoo 19 Community and Enterprise
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Qi Card (International Smart Card) runs a card payment gateway in Iraq. This module adds it to Odoo as a payment provider. When a customer pays a quotation, an invoice or a payment link, Odoo creates the Qi Card payment on the server and sends the customer to the Qi Card payment form, where the card and 3-D Secure are handled. Odoo does not trust the browser or the notification body: it reads the payment status from Qi Card and checks the amount and currency before it marks the payment as paid.
| Hosted payment form: Odoo creates the payment with a fresh UUID request id and sends the customer to the formUrl | |
| Status read-back: the return page, the notification and a check every 15 minutes read GET /payment/{id}/status | |
| Notification URL with a secret: the notification address carries a random secret; calls without it are refused | |
| Clear outcomes: SUCCESS confirms; FAILED, ERROR and AUTHENTICATION_FAILED are errors; EXPIRED cancels | |
| Refunds: full or partial refunds from the Refund button, with the Qi Card refund status | |
| Cancel unpaid payments: cancel a payment on Qi Card while its form is still open | |
| Card details: masked card, card scheme, RRN, authorisation code and result code on the transaction | |
| Sandbox in one click: Test mode uses the Qi Card sandbox; a button fills in the published sandbox credentials | |
| Live host: paste the production host Qi Card gives you; only https hosts of qi.iq are accepted | |
| API log: every call and notification, with the password and customer details masked |
Who it is for
SHOPS IN IRAQ Sell online in Iraqi dinars and keep payments and invoices together. | SERVICE BUSINESSES Send invoices and payment links paid on the Qi Card form. | ODOO PARTNERS A provider that installs like the core ones, with no card data on the Odoo server. |
What it adds to Odoo 19
| Need | Odoo 19 core | With this module |
| Accept Qi Card in Odoo 19 | Not available | Payment provider with the Qi Card payment form |
| Know a payment is real | Not available | Status read back from Qi Card and compared |
| Give money back | Not available | Full and partial refunds from Odoo |
| Notification lost | Not available | Status button and a check every 15 minutes |
| See what was sent | Not available | API log with secrets masked |
See it in Odoo
Credentials
Username, password and terminal ID from Qi Card, the live host, the sandbox button and a connection test.

Notifications
The secret part of the notification address and how long the log is kept.

Paying an invoice
The customer picks the card option on the invoice payment page and goes on to the Qi Card form. The Qi Card form itself is not shown.

A paid transaction
Payment ID, status SUCCESS, masked card, card scheme, RRN and authorisation code.

An open payment
The form is still open: Check Status on Qi Card and Cancel on Qi Card.

Partial refund
A refund of part of a payment, with the Qi Card refund id and status.

Transactions
Paid, open, refunded and failed payments side by side.

API log
Payment creation, notification, status read and refund.

How it works
1 | Get your terminal Qi Card gives you a username, a password, a terminal ID and the live host. |
2 | Try the sandbox Invoicing > Configuration > Payment Providers > Qi Card, Test mode, press Use Sandbox Credentials and pay an invoice with the sandbox test card. |
3 | Go live Enter your own credentials and the live host, then switch to Enabled. Odoo sends the return and notification addresses with each payment. |
Settings
| Terminal ID: sent as X-Terminal-Id with every call | |
| Live API Host: the production host from Qi Card; Test mode always uses the sandbox | |
| Webhook Secret: random part of the notification address; a new one can be made at any time | |
| Keep API Log: number of days before old log lines are removed |
Questions
Does the card number pass through Odoo?
No. The customer types it on the Qi Card form. Odoo only reads the result from Qi Card.
Which currency works?
IQD, the currency of the Qi Card documentation.
Can I refund part of a payment?
Yes. Enter the amount in the Refund wizard; Odoo sends a Qi Card refund for that amount.
Why is the live host a setting?
Qi Card publishes only the sandbox host; the production host comes with your live terminal.
Why is a payment still pending?
Qi Card had not finished it when the customer came back. The notification, the button and the scheduled check read it again.
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