Files
odoo_source/addons/payment_mercado_pago/const.py
T
Valentin Vallaeys (vava) 01843ebca8 [FIX] payment_*: fix supported currencies for providers
*: asiapay, flutterwave and mercado_pago.

Wrong numerical code for USD in Asiapay.

Remove unsupported currencies for Flutterwave (ARS, BRL, CVE, CDF, GMD, LRD, MXN, MZN, SOL, ZMK).

Add supported currencies for Mercado Pago (BOB, EUR).

Reorder currencies from support page list.

closes odoo/odoo#106496

X-original-commit: 4ddb8a9082897b9dbf413392620ddaa06897c328
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
2022-11-25 09:53:27 +01:00

37 lines
1.1 KiB
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Currency codes of the currencies supported by Mercado Pago in ISO 4217 format.
# See https://api.mercadopago.com/currencies. Last seen online: 24 November 2022.
SUPPORTED_CURRENCIES = [
'ARS', # Argentinian Peso
'BOB', # Boliviano
'BRL', # Real
'CLF', # Fomento Unity
'CLP', # Chilean Peso
'COP', # Colombian Peso
'CRC', # Colon
'CUC', # Cuban Convertible Peso
'CUP', # Cuban Peso
'DOP', # Dominican Peso
'EUR', # Euro
'GTQ', # Guatemalan Quetzal
'HNL', # Lempira
'MXN', # Mexican Peso
'NIO', # Cordoba
'PAB', # Balboa
'PEN', # Sol
'PYG', # Guarani
'USD', # US Dollars
'UYU', # Uruguayan Peso
'VEF', # Strong Bolivar
'VES', # Sovereign Bolivar
]
# Mapping of transaction states to Mercado Pago payment statuses.
# See https://www.mercadopago.com.mx/developers/en/reference/payments/_payments_id/get.
TRANSACTION_STATUS_MAPPING = {
'pending': ('pending', 'in_process', 'in_mediation'),
'done': ('approved', 'refunded'),
'canceled': ('cancelled', 'null'),
}