Files
odoo_source/addons/payment_authorize/const.py
T
Horacio Tellez e4c63126b4 [ADD] payment_authorize: add refund for Authorize.
Users can now ask for a refund from Odoo for their transactions done
through Authorize.net. A refund will be triggered from Odoo when
necessary.
Only full refunds are possible.
Note that unsettled transactions will be voided as they cannot be
refunded.

Task - 2678757

closes odoo/odoo#92279

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-01 13:13:55 +02:00

11 lines
508 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Mapping of payment status on Authorize side to transaction statuses.
# See https://developer.authorize.net/api/reference/index.html#transaction-reporting-get-transaction-details.
TRANSACTION_STATUS_MAPPING = {
'authorized': ['authorizedPendingCapture', 'capturedPendingSettlement'],
'captured': ['settledSuccessfully'],
'voided': ['voided'],
'refunded': ['refundPendingSettlement', 'refundSettledSuccessfully'],
}