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>
11 lines
508 B
Python
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'],
|
|
}
|