*: 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>
40 lines
789 B
Python
40 lines
789 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
# The currencies supported by Flutterwave, in ISO 4217 format.
|
|
# 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 = [
|
|
'GBP',
|
|
'CAD',
|
|
'CLP',
|
|
'COP',
|
|
'EGP',
|
|
'EUR',
|
|
'GHS',
|
|
'GNF',
|
|
'KES',
|
|
'MWK',
|
|
'MAD',
|
|
'NGN',
|
|
'RWF',
|
|
'SLL',
|
|
'STD',
|
|
'ZAR',
|
|
'TZS',
|
|
'UGX',
|
|
'USD',
|
|
'XAF',
|
|
'XOF',
|
|
'ZMW',
|
|
]
|
|
|
|
|
|
# Mapping of transaction states to Flutterwave payment statuses.
|
|
PAYMENT_STATUS_MAPPING = {
|
|
'pending': ['pending auth'],
|
|
'done': ['successful'],
|
|
'cancel': ['cancelled'],
|
|
'error': ['failed'],
|
|
}
|