const.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  2. # Currency codes of the currencies supported by Mercado Pago in ISO 4217 format.
  3. # See https://api.mercadopago.com/currencies. Last seen online: 24 November 2022.
  4. SUPPORTED_CURRENCIES = [
  5. 'ARS', # Argentinian Peso
  6. 'BOB', # Boliviano
  7. 'BRL', # Real
  8. 'CLF', # Fomento Unity
  9. 'CLP', # Chilean Peso
  10. 'COP', # Colombian Peso
  11. 'CRC', # Colon
  12. 'CUC', # Cuban Convertible Peso
  13. 'CUP', # Cuban Peso
  14. 'DOP', # Dominican Peso
  15. 'EUR', # Euro
  16. 'GTQ', # Guatemalan Quetzal
  17. 'HNL', # Lempira
  18. 'MXN', # Mexican Peso
  19. 'NIO', # Cordoba
  20. 'PAB', # Balboa
  21. 'PEN', # Sol
  22. 'PYG', # Guarani
  23. 'USD', # US Dollars
  24. 'UYU', # Uruguayan Peso
  25. 'VEF', # Strong Bolivar
  26. 'VES', # Sovereign Bolivar
  27. ]
  28. # Mapping of transaction states to Mercado Pago payment statuses.
  29. # See https://www.mercadopago.com.mx/developers/en/reference/payments/_payments_id/get.
  30. TRANSACTION_STATUS_MAPPING = {
  31. 'pending': ('pending', 'in_process', 'in_mediation'),
  32. 'done': ('approved', 'refunded'),
  33. 'canceled': ('cancelled', 'null'),
  34. }