[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>
This commit is contained in:
Valentin Vallaeys (vava)
2022-11-25 09:53:27 +01:00
parent 44333e00ca
commit 01843ebca8
3 changed files with 9 additions and 15 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ CURRENCY_MAPPING = {
'SGD': '702',
'THB': '764',
'TWD': '901',
'USD': '702',
'USD': '840',
'VND': '704',
}
+3 -11
View File
@@ -1,29 +1,22 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# The currencies supported by Flutterwave, in ISO 4217 format.
# See https://support.flutterwave.com/en/articles/3632719-accepted-currencies.
# See https://flutterwave.com/us/support/general/what-are-the-currencies-accepted-on-flutterwave.
# Last website update: June 2022.
# Last seen online: 24 November 2022.
SUPPORTED_CURRENCIES = [
'ARS',
'BRL',
'GBP',
'CAD',
'CVE',
'CLP',
'COP',
'CDF',
'EGP',
'EUR',
'GMD',
'GHS',
'GNF',
'KES',
'LRD',
'MWK',
'MXN',
'MAD',
'MZN',
'NGN',
'SOL',
'RWF',
'SLL',
'STD',
@@ -33,7 +26,6 @@ SUPPORTED_CURRENCIES = [
'USD',
'XAF',
'XOF',
'ZMK',
'ZMW',
]
+5 -3
View File
@@ -1,20 +1,22 @@
# 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.
# See https://api.mercadopago.com/currencies. Last seen online: 24 November 2022.
SUPPORTED_CURRENCIES = [
'ARS', # Argentinian Peso
'BOB', # Boliviano
'BRL', # Real
'CLP', # Chilean Peso
'CLF', # Fomento Unity
'MXN', # Mexican Peso
'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