account_payment:
- Processing fees computation was done based on the wrong country.
payment:
- The acquirer's cancel message was missing from the
/payment/confirmation page.
- `redirect_form_view_id` field was declared with attribute 'name'
instead of 'string'.
- Uninstalling a payment acquirer would fail with a traceback.
- The first acquirer was not automatically selected if it was the only
selectable payment option of a 'manage' payment form.
- Specifying a preferred acquirer to the /payment/pay page would show
not acquirer at all if the preferred option was incompatible with
the constraints, rather than falling back on showing all acquirers.
payment_adyen:
- When the value of the API URL fields is malformed (e.g., missing the
"https://"), clicking on the confirm button raised a traceback.
payment_ogone:
- There was a typo in the return route.
payment_paypal:
- PayPal acquirers were not filtered out if the currency was not not
supported.
- Returning to the webshop without paying would raise a traceback.
task-2494916
closes odoo/odoo#69996
X-original-commit: 4f7e463fb8b13506caa8aff0beeef5eb0720bf00
Related: odoo/enterprise#17997
Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
39 lines
713 B
Python
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'),
|
|
}
|