Developer guide
VEX Pay siteAPI reference
Browse documentation

Odoo payment provider

Let customers pay Odoo invoices, sales orders and shop orders with VEX Pay; Odoo records the payment and marks the invoice paid.

What it does

For companies that invoice from Odoo. The VEX Pay module (payment_vexpay) adds VEX Pay as a payment provider. Your customer clicks Pay now, pays on the VEX Pay hosted checkout with any method enabled on your account (Pago Móvil, débito inmediato, card, USDT, Colombian pesos), and Odoo records the payment and marks the invoice or order paid by itself. Nobody types payments into accounting by hand.

  • Shop checkout (Odoo eCommerce): VEX Pay is offered next to your other providers.
  • Customer portal: Pay now on an invoice or a sales order.
  • Payment links: the links Odoo generates from an invoice or an order.
Download (version 1.0.0, beta)

One zip per Odoo version: Odoo 18 payment_vexpay-18.0.zip, Odoo 19 payment_vexpay-19.0.zip, Odoo 20 payment_vexpay-20.0.zip. The module is new: try it with a test key before you take live payments. It is not on the Odoo Apps store yet, and Odoo Online can’t install it (see below).

For business owners: a short overview of the Odoo integration, in Spanish, at vexpay.app/odoo-venezuela.

Versions and hosting

HostingOdoo 18Odoo 19Odoo 20
Odoo.shYesYesYes
Self-hosted (Community or Enterprise)YesYesYes
Odoo Online (SaaS)NoNoNo

Odoo Online does not allow third-party modules. On Odoo Online, send your customer a VEX Pay payment link (see Payment links) and record the payment in Odoo yourself.

Requirements

  • A VEX Pay account approved to take live payments (see Going live). A test key works before that.
  • A tenant API key: test while you try it, live when you take real payments (see Authentication).
  • The payment methods you want to offer, enabled on your VEX Pay account. The checkout only shows those.
  • Invoices and orders in US dollars (USD) or bolívares (VES).

Install

  1. Download the zip for your version

    Odoo 18: payment_vexpay-18.0.zip. Odoo 19: payment_vexpay-19.0.zip. Odoo 20: payment_vexpay-20.0.zip.

  2. Put the module in your addons

    Unzip it and copy the payment_vexpay folder into your addons path (self-hosted), or commit it to your repository’s addons (Odoo.sh). Restart Odoo.

  3. Install it

    Apps → Update Apps List (needs developer mode) → search VEX Pay → Install. It depends only on Odoo’s Payment module.

  4. Configure the provider

    Accounting (or Website) → Configuration → Payment Providers → VEX Pay. Paste your test key and turn the provider on in test mode.

  5. Try a payment

    Pay a test invoice from the customer portal. When it works, add your live key and switch the provider to live.

Settings

SettingWhat it does
VEX Pay test keyUsed while the provider is in test mode. Checked with VEX Pay when you save.
VEX Pay live keyUsed once the provider takes real payments. Checked with VEX Pay when you save.
VEX Pay notificationsRead only. Shows the notifications URL registered with VEX Pay, or why it is not registered.
State (Odoo 18 and 19)Test mode uses the test key, Enabled the live key, Disabled turns VEX Pay off.
Live and Published (Odoo 20)Live picks the live key; the provider is offered while it is active and published.
JournalThe Odoo journal where payments are recorded (Odoo’s own setting on every provider).
  • Only administrators see and edit the keys.
  • An invalid key is refused on save with “The VEX Pay key is not valid.” A provider can’t be turned on without the key for its mode.
  • When you save a provider that is on, the module registers its notifications URL (/payment/vexpay/webhook on your Odoo address) with VEX Pay for that mode. Saving again updates it; if it was deleted in VEX Pay, a new one is created.
  • If your Odoo address is not reachable from the internet (localhost, a private network address), nothing is registered and the settings say so. Payments still settle through the 10-minute check below. Set Odoo’s web.base.url to your public address and save the provider again.

Payment flow and statuses

  1. The customer pays

    Odoo creates a payment transaction; the module creates a VEX Pay checkout session for its exact amount and currency and sends the customer to it.

  2. VEX Pay notifies Odoo

    A signed notification reaches your Odoo. The signature is checked before anything is read; a forged one is refused.

  3. Odoo records it

    A paid transaction creates the payment in the provider’s journal and reconciles it with the invoice, and confirms a sales order, as with any Odoo provider.

In VEX PayIn Odoo
PaidTransaction Done; the invoice is paid, the order confirmed
Being processedTransaction Pending
Failed while the checkout is still openNo change: the customer can try again on the same checkout
Failed after the checkout closed, expired or canceledTransaction Canceled
Paid less than the amount dueTransaction Error with what was received; the invoice stays unpaid
Paid after the transaction was canceled in OdooA note on the transaction asks you to check it
Statuses only move forward

A late or repeated notification never moves a transaction back: a pending notice that arrives after the payment is done changes nothing, and Odoo never records the same payment twice.

Each payment carries a VEX Pay reference that starts with odoo_, followed by a tag of your Odoo database and the Odoo reference (for example odoo_1c0a5f6e_INV.2026.00012-1). Look it up in the portal’s payments to find the Odoo document. A reference longer than 64 characters (many documents paid at once) is refused with a message: pay fewer documents at once.

The 10-minute check

Every 10 minutes Odoo asks VEX Pay about transactions that are still waiting and haven’t changed in 10 minutes, up to 50 at a time. If a notification never arrived (the server was down, the address is private), the payment still settles. One transaction that can’t be checked doesn’t stop the others; it is tried again on the next run.

Refunds

  • Full refunds only, from the payment in Odoo (Refund), like any provider that supports refunds.
  • Automatic: payments made with Pago Móvil C2P or in Colombian pesos are reversed in VEX Pay, and the refund transaction in Odoo is done (or pending while VEX Pay processes it).
  • By hand: for other methods (Pago Móvil transfer, débito inmediato, card, USDT) and for partial amounts, Odoo shows that VEX Pay can’t reverse the payment automatically, and nothing is reversed. Return the money to your customer yourself and record it in Odoo with a credit note and a payment.
  • If VEX Pay refuses a reversal, nothing changes in Odoo and the message says so: refund by hand.
What a follow-up means

Some cases need a person: a refund VEX Pay can’t make, a payment that arrived short, or one paid after the transaction was canceled in Odoo. The module never drops them: the transaction shows a message and stays for you to check. Contact VEX Pay support if you need help with the payment.

Several companies

Each Odoo company has its own VEX Pay provider record, with its own keys and its own notifications URL. Use the API key of the VEX Pay account that belongs to that company. A notification is only ever applied to the company whose transaction it names.

Troubleshooting

What you seeWhat to do
“The VEX Pay key is not valid.”Copy the key again from Portal → Claves y webhooks (API keys and webhooks). A test key goes in the test field, a live key in the live field.
Notifications “Not registered”Your Odoo address isn’t public. Set web.base.url to the public https address and save the provider again. Payments still settle every 10 minutes meanwhile.
Notifications don’t arriveCheck that /payment/vexpay/webhook is reachable from the internet (firewall, proxy, basic auth). Save the provider to register the URL again.
A transaction stays PendingVEX Pay is still processing it, or the customer hasn’t finished. The 10-minute check settles it; look up its odoo_ reference in the portal.
VEX Pay isn’t offered at checkoutThe document is in a currency other than USD or VES, or the provider is off or not published for that company or website.

Uninstall

Uninstalling removes the provider’s VEX Pay settings and stops new VEX Pay payments. Payments already recorded in Odoo stay in your accounting, and payments stay in VEX Pay. Delete the notifications URL from Portal → Claves y webhooks if you won’t install the module again.