
Take card payments on the ClickPay hosted payment page, and refund, capture or void them from Odoo.
ClickPay | Saudi Arabia | SAR | Hosted payment page | Signed callback | Refunds | Authorize and capture | Odoo 19
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Adds ClickPay as a payment provider. When the customer picks ClickPay at checkout, on a portal invoice or on a payment link, Odoo asks ClickPay for a payment page and sends the customer there. The card is typed on ClickPay's page, never in Odoo. ClickPay then posts the result to Odoo twice: a callback straight from its server, signed with your server key, and the customer's return, signed the same way. Odoo checks both signatures, the profile and the amount before it marks anything paid. Refunds, captures and voids are sent from the payment record, and a query every 15 minutes catches payments whose callback never came.
| Hosted payment page: tran_type sale, or auth when you capture manually; the link ClickPay returns is only followed if it is on clickpay.com.sa | |
| Signed callback (IPN): the Signature header (HMAC-SHA256 of the whole body with the server key) is checked before the body is read; then the profile ID and the amount | |
| Signed return: checked the way ClickPay documents it; the return carries no amount, so Odoo queries ClickPay before it marks the order paid | |
| Refunds: full or partial, several times, from the payment | |
| Authorize and capture later: capture all of it or part of it, void the rest | |
| Query on ClickPay: a button on the payment and a check every 15 minutes for pending payments, held payments included | |
| Payment page language: Arabic or English, or the customer's language | |
| Prefilled customer details: name, email, phone and address sent so the page opens filled in; the shipping section can be hidden | |
| Region domain: set the Transaction API domain your dashboard shows; anything outside clickpay.com.sa is refused | |
| API log: every call and callback with the ClickPay status and code; server key and customer details masked |
Who it is for
SAUDI ONLINE SHOPS Take payments in SAR through your own ClickPay contract. | B2B AND SERVICES Send a payment link, authorize the amount and capture when the work is done. | SUPPORT TEAMS Refund a customer from Odoo without logging in to the ClickPay dashboard. |
What it adds to Odoo 19
| Need | Odoo 19 core | With this module |
| ClickPay as a payment provider | Not included | Hosted page with signed callback and return |
| Refunds | Not included | Full and partial, from the payment |
| Authorize and capture later | Not included | Partial capture and void |
| Payments left pending | Not included | Queried again every 15 minutes |
See it in Odoo
Credentials
Profile ID, server key (administrators only), the API domain and the callback URL to copy.

Payment page options
Language, prefilled customer details, hidden shipping section and how long to keep the API log.

At checkout
A payment link in SAR. The ClickPay page itself opens on ClickPay's site, so this screenshot shows the Odoo side only.

Paid by callback
The signed callback confirmed the payment and stored the ClickPay reference, card scheme and masked card.

Authorized, partly captured
3,800 SAR authorized, 2,000 SAR captured from Odoo, the rest open.

Held, then queried
A payment ClickPay held for review, confirmed later by Query on ClickPay.

Declined
A 3-D Secure rejection with the ClickPay code and message.

Transactions
Payments, a partial capture and a 300 SAR refund.

API log
Callbacks, payment pages, the capture, the refund and the query. A callback with a wrong signature was refused.

How it works
1 | Get your keys ClickPay dashboard, Developers: the profile ID, the server key and the Transaction API domain of your region. |
2 | Set up the provider Invoicing or Website, Configuration, Payment Providers, ClickPay: paste the values. |
3 | Choose the options Language, prefilled details, manual capture if you want it. |
4 | Try a payment Pay with a test profile in Test mode, refund it from the payment, then put the live profile in and switch the provider to Enabled. |
Settings
| Credentials: profile ID, server key (administrators only), API domain | |
| Payment page: language, prefill customer details, hide shipping | |
| Capture: immediate, or manual from Odoo | |
| API log: how many days to keep it |
Questions
Do card numbers pass through Odoo?
No. Customers type them on the ClickPay page. Odoo gets the masked number in the callback.
Do I need to set up IPN in the dashboard?
No. Odoo sends its callback URL with every payment. You can add it under Developers, Payment Notification as well.
Which payment methods show on the page?
The ones ClickPay enabled on your profile. Odoo does not pick them; it sends the amount and ClickPay shows the page.
What if the customer closes the tab?
The callback still arrives, and Odoo queries pending payments every 15 minutes.
Is there a monthly fee?
No. You pay once for the module. ClickPay bills 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 ClickPay help-centre 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