Odoo18-Base/addons/payment_paypal/const.py
2025-03-10 11:12:23 +07:00

39 lines
713 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
# ISO 4217 codes of currencies supported by PayPal
SUPPORTED_CURRENCIES = (
'AUD',
'BRL',
'CAD',
'CNY',
'CZK',
'DKK',
'EUR',
'HKD',
'HUF',
'ILS',
'JPY',
'MYR',
'MXN',
'TWD',
'NZD',
'NOK',
'PHP',
'PLN',
'GBP',
'RUB',
'SGD',
'SEK',
'CHF',
'THB',
'USD',
)
# Mapping of transaction states to PayPal payment statuses
# See https://developer.paypal.com/docs/api-basics/notifications/ipn/IPNandPDTVariables/
PAYMENT_STATUS_MAPPING = {
'pending': ('Pending',),
'done': ('Processed', 'Completed'),
'cancel': ('Voided', 'Expired'),
}