const.py 713 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  2. # ISO 4217 codes of currencies supported by PayPal
  3. SUPPORTED_CURRENCIES = (
  4. 'AUD',
  5. 'BRL',
  6. 'CAD',
  7. 'CNY',
  8. 'CZK',
  9. 'DKK',
  10. 'EUR',
  11. 'HKD',
  12. 'HUF',
  13. 'ILS',
  14. 'JPY',
  15. 'MYR',
  16. 'MXN',
  17. 'TWD',
  18. 'NZD',
  19. 'NOK',
  20. 'PHP',
  21. 'PLN',
  22. 'GBP',
  23. 'RUB',
  24. 'SGD',
  25. 'SEK',
  26. 'CHF',
  27. 'THB',
  28. 'USD',
  29. )
  30. # Mapping of transaction states to PayPal payment statuses
  31. # See https://developer.paypal.com/docs/api-basics/notifications/ipn/IPNandPDTVariables/
  32. PAYMENT_STATUS_MAPPING = {
  33. 'pending': ('Pending',),
  34. 'done': ('Processed', 'Completed'),
  35. 'cancel': ('Voided', 'Expired'),
  36. }