Financial TimesAmericas' Fastest-Growing 2025
Certified PartnerOdoo Gold · Adobe Gold Solution · Shopify Premier partnershipsOdoo Gold · Adobe Gold · Shopify Premier partnerSee all
One business dayA senior architect replies to every inquiry · +1 (631) 897-7276Architect reply within one business dayLet's talkCall us
Inc. Regionals 2025Fastest-growing private companies in AmericaInc. Regionals 2025 honoreeSee awards
Americas' Fastest-Growing Companies 2025Recognized by the Financial TimesFT Fastest-Growing Companies 2025See the rankingRanking
4.8 / 5 on Clutch265 verified client reviews4.8/5 on Clutch · 265 reviewsRead the reviews
4.8 · 265 Clutch reviews
US United States
May 27, 202113 min readUpdated on October 8, 2026

Worldpay ERP integration in Odoo 20: building the missing payment provider

· Vice President, eCommerce and ERP
Worldpay ERP integration in Odoo 20: building the missing payment provider

Your merchant account is with Worldpay. Your new Odoo store is ready, so you open the payment providers list and scroll. Stripe, Adyen, PayPal, Worldline. No Worldpay.

Worldline looks close enough. It isn't. It's a different company with a different API, and that near-miss in naming is where many Worldpay ERP integration projects lose their first week. What follows is the build path for Odoo 20. It starts with the checks to run first, walks through a custom provider in code, and ends with testing and the faults you're likely to hit.

Before you start: three checks

Confirm Odoo 20 really has no Worldpay provider

It doesn't. Odoo's payment providers documentation lists 21 supported online payment providers, from Adyen and Authorize.Net to Stripe, Worldline and Xendit. (Odoo calls payment gateways "payment providers," so that's the list to check.) The Odoo 20 source code has no payment_worldpay module either. The Odoo 20 release notes from September 2026 did add providers, namely ECPay, Toss Payments, PayU for India and a "Pay on Invoice" option. Worldpay wasn't among them.

Two shortcuts look tempting and fail. Odoo's own module describes Worldline as "a French payment provider covering several European countries," so it's a different company with different credentials. And the provider form warns that creating a payment provider from scratch isn't supported, pointing you to Duplicate instead. Duplicating Stripe gives you a second Stripe account, not Worldpay. A new provider needs its own module.

Find out which Worldpay API your account is boarded on

Worldpay has changed hands over the years. Global Payments completed its acquisition of Worldpay from FIS and GTCR, announced on January 12, 2026. Your contract, support contacts and developer portal may still carry the Worldpay name.

The ownership matters less than the API. Worldpay's developer documentation index lists separate gateways for online payment processing, including Access Worldpay, Express, cnpAPI and WPG. Each has its own endpoints, credentials and payload format, and a connector built for one won't talk to another. Worldpay's official enterprise plugins cover Salesforce and Shopify, with nothing for Odoo.

So ask your Worldpay contact one question before anyone writes code: which API is our merchant account boarded on? An earlier version of this guide pointed readers at a sign-up URL. Ignore URLs from blog posts, this one included, and build against the API name your account manager confirms.

Check your hosting and your scope

The Odoo Apps FAQ states that third-party apps sold on Odoo Apps can't be used on Odoo Online unless they're data modules. A Worldpay provider is Python code, so it needs Odoo.sh or on-premise hosting. If moving off Odoo Online isn't on the table, use a built-in provider instead.

This guide covers online payment at checkout. In-store terminals in Odoo Point of Sale are a separate project. Subscriptions are partly covered: Worldpay's setup guide notes that Hosted Payment Pages can set up a recurring agreement and take the first payment. Later merchant-initiated payments need its Payments API, which is a bigger build.

One last question is worth asking out loud. If no contract or pricing deal keeps you on Worldpay, a provider Odoo already maintains in its own codebase costs less to run. A custom module is yours to port at every upgrade.

Route Best when What you own Watch out for
Apps Store module A listed module supports your Worldpay API and Odoo 20 License, testing, vendor relationship Feature gaps (refunds, saved cards), upgrade lag
Custom provider module You need a specific API, refunds, saved cards or tight accounting rules The code and its upgrades Framework changes between Odoo versions
Pay by link, manual matching Low volume, invoices paid by B2B customers A manual reconciliation step Finance team time; no website checkout

The Odoo Apps Store lists several third-party Worldpay connectors, and some are already published for Odoo 20. Independent vendors build them, not Odoo or Worldpay. Each one targets a single Worldpay API. One listing, for example, covers Worldpay's US Express hosted payments API and is limited to the US and Canada in USD and CAD. Before you buy, check five things:

  1. Version. The module lists 20.0, not just 17.0 or 18.0.
  2. API match. It calls the same Worldpay API your merchant account uses.
  3. Webhooks. It updates Odoo from Worldpay's server-to-server events, not only from the customer's browser return.
  4. Refunds and saved cards. Check whether the listing claims them. If it's silent, assume no.
  5. Code review. Have a developer read the source before it touches production. It handles money.

Worldpay's Hosted Payment Pages also support pay by link, which needs no code at all. Picture a B2B business that invoices from Odoo and gets paid on a handful of invoices a week. Sending a Worldpay link and matching the deposit in Odoo Accounting can be enough. The cost is a matching step for your finance team on every customer payment, so it stops making sense as volume grows.

If neither fits, the rest of this guide is the build.

Worldpay ERP integration step by step: a custom Odoo 20 provider

If you searched for "Odoo custom payment acquirer," you're in the right place under an old name. Odoo renamed the model from payment.acquirer to payment.provider in Odoo 16. The hooks kept moving after that, so code written for Odoo 17 or 18 won't drop in. If you're porting an older Worldpay module, start with what changed:

Job Odoo 18 Odoo 19 Odoo 20
Find the transaction from provider data _get_tx_from_notification_data _search_by_reference + _extract_reference Same as 19
Update the transaction _process_notification_data _apply_updates _apply_updates
Entry point for incoming data _handle_notification_data _process _record (stores the payload, then a cron processes it)
Test vs live switch state selection field state selection field is_live checkbox

Sources: Odoo 18, Odoo 19 and Odoo 20 source.

The last two rows matter most. In Odoo 20, incoming payment data is saved as a payment.data record and processed by a scheduled job, so a webhook handler records the payload and returns quickly.

The steps below build a provider for Worldpay's Hosted Payment Pages on Access Worldpay, following the structure of Odoo's own Worldline module. Treat the code as a starting sketch. It hasn't been run against a live Odoo 20 database, so your developer must test every path against Worldpay's Try environment.

Want your own card form instead of a hosted page? Worldpay's Payments API runs FraudSight risk checks, 3DS and tokens through one API. Worldpay lists PCI compliance as automatic only when you pair it with its Checkout SDK (integration options).

Step 1: set up the module

Your module needs a manifest that depends on payment, a post_init_hook that calls setup_provider(env, "worldpay_hpp"), and an uninstall_hook that calls reset_payment_provider. Add three data files: a payment.provider record, the payment methods it offers (at least a card record linked to it) and a form view that shows your credential fields.

Step 2: extend payment.provider with Worldpay credentials

Access Worldpay uses Basic auth, with separate credentials for Try and Live, per its API principles. The Hosted Payment Pages API also needs its own versioned media type in the headers.

from odoo import fields, models


class PaymentProvider(models.Model):
    _inherit = "payment.provider"

    code = fields.Selection(
        selection_add=[("worldpay_hpp", "Worldpay")],
        ondelete={"worldpay_hpp": "set default"},
    )
    worldpay_entity = fields.Char("Merchant entity", required_if_provider="worldpay_hpp")
    worldpay_username = fields.Char(required_if_provider="worldpay_hpp", groups="base.group_system")
    worldpay_password = fields.Char(required_if_provider="worldpay_hpp", groups="base.group_system")
    worldpay_webhook_secret = fields.Char(required_if_provider="worldpay_hpp", groups="base.group_system")

    def _get_default_payment_method_codes(self):
        if self.code != "worldpay_hpp":
            return super()._get_default_payment_method_codes()
        return {"card"}

    def _build_request_url(self, endpoint, **kwargs):
        if self.code != "worldpay_hpp":
            return super()._build_request_url(endpoint, **kwargs)
        host = "access.worldpay.com" if self.is_live else "try.access.worldpay.com"
        return f"https://{host}/{endpoint}"

    def _build_request_headers(self, method, endpoint, payload, **kwargs):
        if self.code != "worldpay_hpp":
            return super()._build_request_headers(method, endpoint, payload, **kwargs)
        media_type = "application/vnd.worldpay.payment_pages-v1.hal+json"
        return {"Content-Type": media_type, "Accept": media_type}

    def _build_request_auth(self, **kwargs):
        if self.code != "worldpay_hpp":
            return super()._build_request_auth(**kwargs)
        return (self.worldpay_username, self.worldpay_password)

Step 3: create the payment page session and redirect the customer

When the customer clicks Pay, Odoo asks the provider for rendering values. This is where you call Worldpay's payment_pages endpoint, which returns a session url. Worldpay's setup guide makes four fields mandatory: transactionReference, merchant.entity, narrative.line1 (24 characters at most) and value in minor units.

from odoo import models
from odoo.addons.payment import utils as payment_utils

RESULT_KEYS = ("successURL", "pendingURL", "failureURL", "errorURL", "cancelURL", "expiryURL")


class PaymentTransaction(models.Model):
    _inherit = "payment.transaction"

    def _get_specific_rendering_values(self, processing_values):
        if self.provider_code != "worldpay_hpp":
            return super()._get_specific_rendering_values(processing_values)
        status_url = f"{self.provider_id.get_base_url()}/payment/status"
        payload = {
            "transactionReference": self.reference,
            "merchant": {"entity": self.provider_id.worldpay_entity},
            "narrative": {"line1": self.company_id.name[:24]},
            "value": {
                "currency": self.currency_id.name,
                "amount": payment_utils.to_minor_currency_units(self.amount, self.currency_id),
            },
            "resultURLs": {key: status_url for key in RESULT_KEYS},
        }
        response = self.provider_id._send_api_request(
            "POST", "payment_pages", json=payload, reference=self.reference
        )
        url = response["url"]
        return {
            "api_url": url,
            "http_method": "get",
            "url_params": payment_utils.extract_url_params(url),
        }

This is a redirect payment flow, and Worldpay says to send the customer to the session URL as a GET request. Odoo's generic redirect form strips query strings from the form action. That's why extract_url_params passes them as hidden fields.

Step 4: receive Worldpay events and verify the signature

The customer's browser return is a courtesy. The source of truth is Worldpay's server-to-server event webhook.

Your webhook URL must use an encrypted HTTPS connection with a certificate from a trusted authority. For tamper protection, Worldpay can also send an Event-Signature header. It's an HMAC-SHA256 of the body, using a shared secret your Worldpay implementation manager issues.

import hashlib
import hmac

from werkzeug.exceptions import Forbidden

from odoo import http
from odoo.http import request


class WorldpayController(http.Controller):

    @http.route("/payment/worldpay_hpp/webhook", type="http", auth="public",
                methods=["POST"], csrf=False)
    def worldpay_webhook(self):
        data = request.get_json_data()
        tx_sudo = request.env["payment.transaction"].sudo()._search_by_reference(
            "worldpay_hpp", data
        )
        if tx_sudo:
            secret = tx_sudo.provider_id.worldpay_webhook_secret.encode()
            expected = hmac.new(secret, request.httprequest.data, hashlib.sha256).hexdigest()
            header = request.httprequest.headers.get("Event-Signature", "")
            received = [part.strip().rsplit("/", 1)[-1] for part in header.split(",") if part]
            if not any(hmac.compare_digest(sig, expected) for sig in received):
                raise Forbidden()
            tx_sudo._record(data)
        return request.make_json_response("")

Step 5: map Worldpay events to Odoo transaction states

Worldpay's webhook reference puts the reference, event type and amount under eventDetails. Odoo needs three overrides on top of that: find the reference, apply the state and return the amount so Odoo's _validate_amount can check it.

WORLDPAY_STATES = {
    "pending": {"sentForAuthorization"},
    "done": {"authorized", "sentForSettlement", "settled"},
    "cancel": {"cancelled", "cancelledByCustomer"},
    "error": {"refused", "error", "expired", "settlementFailed"},
}

# Add these methods to the PaymentTransaction class from Step 3.

    def _extract_reference(self, provider_code, payment_data):
        if provider_code != "worldpay_hpp":
            return super()._extract_reference(provider_code, payment_data)
        return payment_data.get("eventDetails", {}).get("transactionReference")

    def _apply_updates(self, payment_data):
        if self.provider_code != "worldpay_hpp":
            return super()._apply_updates(payment_data)
        details = payment_data.get("eventDetails", {})
        self.provider_reference = details.get("paymentId") or self.provider_reference
        event = details.get("type")
        if event in WORLDPAY_STATES["pending"]:
            self._set_pending()
        elif event in WORLDPAY_STATES["done"]:
            self._set_done()
        elif event in WORLDPAY_STATES["cancel"]:
            self._set_canceled()
        elif event in WORLDPAY_STATES["error"]:
            self._set_error(f"Worldpay event: {event}")

    def _extract_amount_data(self, payment_data):
        if self.provider_code != "worldpay_hpp":
            return super()._extract_amount_data(payment_data)
        amount = payment_data.get("eventDetails", {}).get("amount")
        if not amount:
            return None  # Event without an amount: skip the amount check
        return {
            "amount": payment_utils.to_major_currency_units(amount["value"], self.currency_id),
            "currency_code": amount["currencyCode"],
        }

Treat the mapping as a business decision. Per Worldpay, authorized means the funds are reserved in the customer's account. Marking it done suits auto-settled card payments. If you ship before you charge, map authorized to _set_authorized() and enable manual capture instead.

Refunds, saved cards and payment links aren't in this sketch, and each needs further overrides and its own tests. Until refunds are built, Worldpay eCommerce (SMB) merchants can manage them from the Worldpay dashboard. Enterprise accounts use its Payment Queries API.

Step 6: configure Worldpay as an Odoo payment provider

Once the module is installed, setup follows Odoo's standard provider configuration:

  1. Go to Accounting ‣ Configuration ‣ Payment Providers (the same list sits under Website and Sales).
  2. Open Worldpay and fill in the Credentials group on the Configuration tab. For the sketch above, that's the merchant entity, the API username and password and the webhook secret.
  3. Set the payment journal under the same tab. Odoo 20 requires one for every provider except "custom" ones. Pick the bank journal for the account Worldpay pays into, so reconciliation lines up.
  4. On the Payment Methods tab, turn on only the methods your Worldpay account accepts.
  5. Use the Restrictions tab if you need it. Odoo 20 can limit a provider by country, currency, pricelist and minimum or maximum amount. The sketch sends each order's ISO currency code to Worldpay, so for multi-currency payments, show Worldpay only for currencies your account supports.
  6. Write the customer-facing Messages for pending, done and canceled payments.
  7. Leave Live unchecked while you test. Odoo shows a "Test Mode" ribbon on the form. Publish the provider only when you're ready for customers to see it next to your other payment options.

Odoo recommends testing payment providers on a duplicate or test database, so test invoices don't consume your real invoice numbering. Do that.

Step 7: test in Worldpay's Try environment, then go live

Worldpay's Try environment lives at try.access.worldpay.com. Its testing guide drives outcomes by the cardholder name:

Scenario Cardholder name Visa test number Expected event
Approved AUTHORISED 4000000000002701 authorized (or sentForSettlement with auto-settlement)
Declined REFUSED 4000000000002701 refused
3DS challenge passed AUTHORISED 4000000000002503 authorized

Run the whole payment flow for each scenario. The Odoo transaction should land in the right state, the sales order should confirm, the invoice should show as paid and the payment should hit the right journal. Then take your webhook endpoint offline for a few minutes. When it comes back, the retried event should still update Odoo.

Worldpay's go-live checklist has two steps people skip. Switch from try.access.worldpay.com to access.worldpay.com, and run a few real "live proving" transactions before you announce anything. Worldpay eCommerce accounts must also display card scheme logos where customers pay.

Why the sketch redirects instead of embedding

Under PCI DSS v4.0.1, the PCI Security Standards Council treats a full redirect to the processor's page differently from an embedded iframe. Its February 2025 FAQ says the new script-attack eligibility criterion for SAQ A doesn't apply to merchants who redirect customers to the processor. It does apply when you embed the processor's iframe.

That makes the full redirect the low-scope option for PCI compliance. Card numbers go into Worldpay's secure page, and Odoo only ever sees references and amounts. The trade-off is customer experience, since shoppers leave your site for a moment to pay. Embed the page later in an iframe or lightbox and you take on extra script-monitoring work. Your acquirer, not this article, decides which SAQ you complete.

Troubleshooting a Worldpay provider in Odoo

Credentials are rejected

First, make sure nobody typed Worldpay credentials into the Worldline provider. Then check the environment. Access Worldpay issues separate Try and Live credentials, and the sketch picks the host from the Live checkbox, so Live credentials fail against Try and the reverse.

Every webhook fails the signature check

Worldpay's signature page doesn't state the encoding, and the sketch assumes a hex digest. Confirm it with your Worldpay contact. While you're at it, note that Worldpay asks for a 400 on a bad signature, and the sketch returns 403. Align the two before go-live.

Worldpay keeps resending the same event

Worldpay expects an HTTP 200 within 10 seconds and retries unacknowledged events for up to a week. In Odoo 20, the handler should only verify, call _record and return. Anything slower belongs in the processing job.

The customer sees an error instead of the Worldpay page

Look at the redirect. If any query parameter from the session URL didn't reach Worldpay, the session won't open. Check that extract_url_params is in your rendering values and that the generic form sends a GET.

Webhooks fail or transactions never update after a port

Odoo 18 hook names such as _handle_notification_data and _process_notification_data don't exist in Odoo 19 or 20. A controller that calls them fails, and overrides of them are never called. Move the logic to _extract_reference, _apply_updates and _extract_amount_data, as in Step 5.

Getting it built

Not every team wants to own a payment module. An Apps Store author is the fastest start when their module already matches your Worldpay API. Odoo's Success Packs give you a dedicated consultant from the vendor, with developments billed per consulting day. Odoo's partner directory lists official partners if you want time-zone overlap or industry experience.

Brainvire is an Odoo Gold Partner. Our Odoo team would start where this guide does, by confirming which Worldpay API your account uses, then scope the provider module alongside the rest of your Odoo ERP rollout. If an Apps Store module already covers your API, buy that instead.

For how a payment connector sits next to your other links, our guide to Odoo connectors compares native, Apps Store, custom and API options. The Odoo integrations page covers the rest. When your Worldpay API is confirmed, send us the details and we'll scope the build.

FAQ

Does Odoo have a built-in Worldpay payment provider?

No. Odoo 20's payment providers documentation lists 21 providers, and Worldpay isn't one of them. Worldline, which is on the list, is a different company. You'll need a third-party module from the Odoo Apps Store or a custom provider module.

What happened to payment acquirers in Odoo?

They were renamed. Since Odoo 16, the model is payment.provider and the menu reads Payment Providers. Odoo 19 and 20 also renamed the main hooks, so a custom payment acquirer written for older versions needs porting, not just a version bump.

Can I use Worldpay with Odoo Online?

Not with a module that contains Python code. The Odoo Apps FAQ says third-party apps can't run on Odoo Online unless they're data-only modules. Odoo.sh and on-premise hosting both support them.

ShareLinkedInXEmail

Related reading

Planning an Odoo implementation?

Explore Odoo ERP services