summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/controllers/main.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-02-11 12:47:52 +0100
committerChristophe Simonis <chs@odoo.com>2019-02-11 12:47:52 +0100
commit75eec26da39614b4749ae84e588af0a0b29ddaa0 (patch)
tree075cfe4562bf5e0afd14001aa31287e73f49dfba /addons/payment_authorize/controllers/main.py
parentb6d62f8ce38774fcffd94ee8450ae570def8e900 (diff)
parent728bb2a28ec84514e3fd63a3732822ed34c028a8 (diff)
[MERGE] forward port branch saas-11.3 up to 728bb2a28ec
Diffstat (limited to 'addons/payment_authorize/controllers/main.py')
-rw-r--r--addons/payment_authorize/controllers/main.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/addons/payment_authorize/controllers/main.py b/addons/payment_authorize/controllers/main.py
index dd8d96f6e90..70d641564a6 100644
--- a/addons/payment_authorize/controllers/main.py
+++ b/addons/payment_authorize/controllers/main.py
@@ -84,13 +84,14 @@ class AuthorizeController(http.Controller):
'id': token.id,
'short_name': token.short_name,
'3d_secure': False,
- 'verified': False,
+ 'verified': True, #Authorize.net does a transaction type of Authorization Only
+ #As Authorize.net already verify this card, we do not verify this card again.
}
-
- if verify_validity != False:
- token.validate()
- res['verified'] = token.verified
-
+ #token.validate() don't work with Authorize.net.
+ #Payments made via Authorize.net are settled and allowed to be refunded only on the next day.
+ #https://account.authorize.net/help/Miscellaneous/FAQ/Frequently_Asked_Questions.htm#Refund
+ #<quote>The original transaction that you wish to refund must have a status of Settled Successfully.
+ #You cannot issue refunds against unsettled, voided, declined or errored transactions.</quote>
return res
@http.route(['/payment/authorize/s2s/create'], type='http', auth='public')