
Take card payments in Odoo on the PayZen hosted payment page, with refunds and captures from Odoo.
PayZen | Lyra | Hosted payment page | HMAC-SHA-256 | Signed IPN | Payment in instalments | Manual capture | Partial refunds | REST API V4 | Odoo 19
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Adds PayZen as a payment provider for shops and service businesses with a PayZen account. The customer picks PayZen on the website checkout, a portal invoice or a payment link, and Odoo posts a signed form to the PayZen payment page. The card is typed there, never in Odoo. PayZen then calls Odoo back with a signed instant payment notification (IPN): Odoo checks the signature, the shop ID, the amount and the currency before it marks the order paid. Refunds, captures of authorized payments and cancellations go through the PayZen REST API V4 from the payment in Odoo, so you rarely need the PayZen back office.
| Hosted payment page: the signed vads_ form, HMAC-SHA-256 by default or SHA-1 for older shops, test and production keys picked from the provider state | |
| Signed IPN: signature, shop ID, transaction number, amount and currency checked before anything changes; a test notification is refused once the provider is in production | |
| Payment in instalments: a second PayZen provider, created for you, splits the payment into 2 to 12 instalments with the period you set and only from the amount you set | |
| Manual capture: authorize at checkout and capture later from Odoo (Transaction/Validate), or void the authorization | |
| Refunds: full or partial, several times, from the payment; a refund before the bank capture cancels the payment on PayZen instead | |
| Capture delay and card types: days before the bank capture, and the card types shown on the page (CB;VISA;MASTERCARD for example) | |
| Page language: the customer's language when PayZen has it, or a fixed one of the 12 PayZen languages | |
| Status checks: a button on the payment and a check every 15 minutes read pending payments back from PayZen, for customers who close the tab | |
| Test Connection: checks the shop ID and the REST password with a harmless call | |
| API log: every call and notification with its result; keys, card numbers and customer contact details masked |
Who it is for
FRENCH AND EUROPEAN SHOPS Take CB, Visa and Mastercard through your own PayZen contract. | HIGHER-VALUE ORDERS Offer payment in 3 or 4 instalments next to the one-off payment. | SERVICES AND B2B Send a payment link or a portal invoice, authorize now and capture when you deliver. |
What it adds to Odoo 19
| Need | Odoo 19 core | With this module |
| PayZen as a payment provider | Not included | Hosted PayZen page with signed form and IPN |
| Payment in instalments | Not included | Separate PayZen provider with count, period and minimum amount |
| Refunds and captures | Not included | From the payment in Odoo through the REST API V4 |
| Pending payments | Not included | Checked again on PayZen every 15 minutes |
See it in Odoo
Shop keys
Shop ID, test and production keys, REST passwords (administrators only), the IPN URL to copy and the Test Connection button.

Payment page options
Page language, card types, capture delay, return delay and the instalment settings.

Pay in 3 instalments
The second provider: 3 instalments, 30 days apart, from 150 EUR.

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

Paid by notification
The signed IPN set the payment to Confirmed and stored the PayZen UUID, card type and masked number.

A payment in instalments
The payment schedule PayZen received is kept on the transaction.

Authorized, waiting for capture
Capture or void it from Odoo.

A refused card
The PayZen status and the bank authorization code are kept.

Transactions
PayZen payments with a partial refund of 140 EUR.

API log
Notifications, the refund call and the connection test, with a forged notification refused.

How it works
1 | Get your keys In the PayZen Merchant Back Office, Settings, Shop, Keys: the shop ID and the test and production keys. REST API keys: the REST passwords. |
2 | Set up the provider Invoicing or Website, Configuration, Payment Providers, PayZen: paste the values and press Test Connection. |
3 | Choose the options Capture delay, card types, language; turn on the instalments provider if you want it. |
4 | Try a payment Pay an order in Test mode with a PayZen test card, then switch the provider to Enabled. |
Settings
| Credentials: shop ID, test and production keys, REST test and production passwords (administrators only), signature algorithm | |
| Payment page: language, card types, capture delay, return delay, send the IPN URL with each payment | |
| Instalments: number of instalments, days between them, amount from which they apply | |
| Capture: immediate, or manual from Odoo | |
| API log: how many days to keep it |
Questions
Do card numbers pass through my Odoo server?
No. The customer types them on the PayZen page. Odoo only gets the masked number and the card type in the notification.
Do I have to set the notification URL in the PayZen back office?
No. Odoo sends it with each payment. You can turn that off and set it in the back office yourself.
How do instalments work?
The first instalment is charged at once and the order is paid in Odoo. PayZen collects the next ones on its schedule; Odoo does not create new payments for them.
What if the customer closes the tab after paying?
The notification still arrives, and Odoo checks pending payments on PayZen every 15 minutes as well.
Is there a monthly fee?
No. You pay once for the module; PayZen 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 PayZen documentation (hosted payment form and REST API V4) and tested with recorded answers. Currencies: EUR and the other currencies PayZen lists for multi-currency shops.
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