HyperPay Payments (COPYandPAY)
Take card payments in Odoo with HyperPay's COPYandPAY payment form: server-side payment status, result codes, AES-256-GCM encrypted webhooks and refunds, with no card data on your server.
What it does
Adds HyperPay as an Odoo payment provider. Odoo prepares the checkout server to server and shows HyperPay's own payment form (their script, with its integrity hash); the customer types the card there, so no card data ever reaches Odoo.
When the customer comes back, Odoo asks HyperPay for the payment status and checks the payment id, reference, amount, currency, payment type and brand before the order is confirmed. Result codes are read with HyperPay's published groups: success, manual review, pending or declined.
Webhooks are decrypted with your AES-256-GCM key; a webhook that does not authenticate is refused.
Demo video
The video loads from YouTube (privacy-enhanced mode) when you press play. Watch on YouTube
Features
| Feature | What it does |
|---|---|
| Payment form | HyperPay's COPYandPAY form on a page of your Odoo, script loaded with its SRI integrity hash; the page needs the token of the customer's own redirect. |
| Verified payments | The payment status is read from HyperPay; id, reference, amount, currency, type and brand must match. |
| Result codes | Success, manual review (kept pending with a message), pending and declined, from HyperPay's published code groups. |
| Encrypted webhooks | AES-256-GCM with your 64-character key; the authentication tag must verify. |
| Refunds | Full and partial (RF), checked against the refunds HyperPay already linked to the payment. |
| Rate limits | At most one status read per transaction every 30 seconds (HyperPay allows two per minute). |
| History | One row per HyperPay call and webhook, with result codes; credentials visible to administrators only and never logged. |
Setup
- Install the module. In Odoo: Invoicing/Accounting or Website > Configuration > Payment Providers > HyperPay.
- Enter the Access Token and the Entity ID HyperPay gave you (test values in Test Mode, live ones when enabled) and the Card Brands enabled for your entity. Click Test Connection.
- In the HyperPay portal (Administration > Webhooks) add a webhook to the Webhook URL for HyperPay shown on the form, and copy its 64-character decryption key into Odoo.
- Publish the provider.
Requirements
- Odoo 17, 18, 19 or 20, Community edition
- Odoo apps: Payment
- Python requests and cryptography on the Odoo server
What it does not do
- Pre-authorisation and capture, tokenised (one-click) payments, subscriptions, pay-by-link.
- Server-to-server card payments (they would put card data in Odoo).
- Three-decimal currencies (HyperPay amounts have two decimals).
Tests
| Odoo | Tests passed | Last run |
|---|---|---|
| 17 | 63 | |
| 18 | 63 | |
| 19 | 63 | |
| 20 | 63 |
The tests ship with the module source, so you can run them on your own server.
Questions
Does Odoo see card numbers?
No. The card is entered in HyperPay's form, which talks to HyperPay directly; Odoo only reads the payment status.
How do I offer mada?
Add the brand code HyperPay gives you for your mada entity to Card Brands; the form shows the brands you list.
Why does a payment stay pending?
HyperPay answered with a pending or manual-review result code. The scheduled check reads it again; manual review is decided in the HyperPay portal.
Where do I configure the webhook?
In the HyperPay portal (Administration > Webhooks), with the URL shown on the provider form; then copy the decryption key into Odoo.
Selling in Saudi Arabia?
The ZATCA readiness review checks your Odoo setup against ZATCA Phase 2 e-invoicing for SAR 4,500, credited to the integration project.