Files
odoo_source/addons/payment_mercado_pago
Valentin Vallaeys (vava) 90af85c2e4 [IMP] payment(_*): show available currencies for payment providers
Before this commit, the lists of supported currencies by payment
provider were hard-coded in the Python scripts, which made them
unavailable to the users.

With this commit, the implemented initial lists of supported currencies
are displayed on the form view and are editable, because Odoo lists may
not be up-to-date. Empty lists do not trigger any filtering on the
payment providers to access payment methods.

For Authorize.net and Asiapay payment providers, the specific
`(authorize,asiapay)_currency_id` are removed and the generic payment
provider field `available_currency_ids` is restricted to a single-item
list when one of those providers is enabled.

task-2926016

closes odoo/odoo#101018

Related: odoo/enterprise#34158
Related: odoo/documentation#2788
Related: odoo/upgrade#4069
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-05 16:51:56 +01:00
..
…
…

Mercado Pago

Implementation details

Supported features

  • Payment with redirection flow
  • Several payment methods such as credit cards, debit cards, and others.
  • Webhook notifications.

Not implemented features

API and gateway

We choose to integrate with a combination of the Checkout Pro and Checkout API solutions: The payment with redirection flow is initiated by sending a client HTTP request with a form-encoded payload like Checkout Pro's JavaScript SDK does under the hood. The remaining API calls are made according to the Checkout API's documentation. It was not possible to integrate with Checkout Pro only as it only allows redirecting customers to the payment page, nor with the Checkout API only as it requires building a custom payment form to accept direct payments from the merchant's website.

The other gateways were ruled out. See the task's dev notes for the details on the other gateways.

The API implemented by this module is not versioned.

Merge details

The first version of the module was specified in task 2704764 and merged with PR odoo/odoo#83957 in saas-15.5.

Testing instructions

https://www.mercadopago.com.mx/developers/en/docs/checkout-api/integration-test/test-cards