const.py 789 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  2. # The currencies supported by Flutterwave, in ISO 4217 format.
  3. # See https://flutterwave.com/us/support/general/what-are-the-currencies-accepted-on-flutterwave.
  4. # Last website update: June 2022.
  5. # Last seen online: 24 November 2022.
  6. SUPPORTED_CURRENCIES = [
  7. 'GBP',
  8. 'CAD',
  9. 'CLP',
  10. 'COP',
  11. 'EGP',
  12. 'EUR',
  13. 'GHS',
  14. 'GNF',
  15. 'KES',
  16. 'MWK',
  17. 'MAD',
  18. 'NGN',
  19. 'RWF',
  20. 'SLL',
  21. 'STD',
  22. 'ZAR',
  23. 'TZS',
  24. 'UGX',
  25. 'USD',
  26. 'XAF',
  27. 'XOF',
  28. 'ZMW',
  29. ]
  30. # Mapping of transaction states to Flutterwave payment statuses.
  31. PAYMENT_STATUS_MAPPING = {
  32. 'pending': ['pending auth'],
  33. 'done': ['successful'],
  34. 'cancel': ['cancelled'],
  35. 'error': ['failed'],
  36. }