OdooWiki OCA HUB

Product Restrict Payment Acquirer

product_restrict_payment_acquirer folder_open OCA/account-payment open_in_new
Accounting License: AGPL-3

This module extends partner_restrict_payment_acquirer module functionality.

It allows to restrict payment acquirers based on products selected in Sales Order lines.

Only selected acquirers will be available for on-line payment in portal.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Restrict which online payment providers customers can use at checkout based on the products in their sales order. You set allowed providers per product and choose whether the first product or all products decide the list.

This module lets you control the payment methods offered to customers on the portal checkout page according to what they are buying.

On each product form, in the Sales tab, a new "Allowed Payment Providers" field lets you pick which payment providers are acceptable for that product. Only providers that are enabled or in test mode can be selected.

In Settings, a new "Payment Acquirer Restriction" section adds a "Product based acquirer selection" option with two choices: - First Product: only the providers allowed for the first order line are offered. - All Products: only providers allowed for every product in the order are offered.

If the setting is left empty, product-based restriction is disabled and the normal provider list is used. If a product has no allowed providers, or the order has no lines, the module falls back to the standard list of compatible providers.

The restriction applies when Odoo builds the list of compatible payment providers for an order, so it affects the payment step in the online shop and portal. It builds on the partner_restrict_payment_acquirer module, which restricts providers by customer.

Models and fields (3)
  • payment.provider · extends an existing model
  • product.template · extends an existing modelallowed_payment_provider_ids (Allowed Payment Providers)
  • res.config.settings · extends an existing modelproduct_acquirer_restriction_mode

Text generated by AI (DeepSeek) from reading the Odoo 17.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/account-payment.

terminal Installation and usage

OCA documentation · Odoo 17.0

In General Settings - Sales section select “Payment Acquirer Restriction".

Following options are available:

  • "First product". Will allow acquirers selected in the product of the first line.
  • "All products". Will allow acquirers allowed in all products in all lines.

Note: Leaving this field empty will disable product based on acquirer selection.

Open product form and go to "Sales" tab:

> Add payment acquirers in "Allowed Acquirers" field.

Note: Leaving this field empty will remove any restrictions and allow to select any acquirer.

Note 2: Partner wide restriction will override product wide one.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.