OdooWiki OCA HUB

Payment Acquirers' configuration with server_environment

payment_environment folder_open OCA/server-env open_in_new
Tools License: LGPL-3

This module allows to configure payment acquirers using server_environment files.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Lets administrators store payment acquirer settings (such as the enabled/disabled state) in server environment configuration files instead of the Odoo database, so sensitive or environment-specific values stay outside the database.

This module extends the payment acquirer configuration so that certain settings can be read from server environment files rather than being typed and stored in Odoo. It builds on the payment and server_environment modules.

  • The acquirer's state (for example enabled or test) is treated as a server environment field, meaning its value comes from the server configuration files.
  • Because the state is no longer a normal stored field, a custom search is added so Odoo can still find acquirers by state. This matters when Odoo builds a payment link and looks for acquirers that are enabled or in test mode.
  • The payment acquirer form view is extended to show the technical name (tech_name) field, visible only to users with the no-one group (developer mode).
  • The acquirer list is ordered by module state, sequence and name.

It touches the payment.acquirer model and its form view. No new menus, reports, emails or scheduled jobs are added. The module is aimed at administrators who manage Odoo deployments with environment-based configuration.

Depends on

Models and fields (1)
  • payment.acquirer · new modelstate

Text generated by AI (DeepSeek) from reading the Odoo 14.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 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/server-env.

terminal Installation and usage

OCA documentation · Odoo 14.0

To install this module, you need to have the server_environment module installed and properly configured.

After installed, the environment configurable fields will be read from the environment files.

With this module installed, the payment acquirers are configured in the server_environment_files module (which is a module you should provide, see the documentation of server_environment for more information).

In the configuration file of each environment, for each payment acquirer you may use the section [payment_acquirer.technical_name] to configure the acquirer values, where "technical_name" is the acquirer's tech_name.

This module alone only lets you configure the state field, which allows to set the acquirer's environment. Most payment acquirers will define specific fields to store their credentials, so glue modules are required to include them in _server_env_fields if that's what you want.

Example of config file:

[payment_acquirer.paypal]
state = test

Once configured, Odoo will read the payment acquirer values from the configuration file related to each environment defined in the main Odoo file.

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.