summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/controllers
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-02-08 19:19:57 +0100
committerChristophe Simonis <chs@odoo.com>2019-02-08 19:19:57 +0100
commit728bb2a28ec84514e3fd63a3732822ed34c028a8 (patch)
tree84436a2f2e785ed3737f8b3c494dc4b03cf8de49 /addons/payment_authorize/controllers
parent0c42a607ece06b6295ba9d2c71bd8862e4e253ae (diff)
parent9553240adc4a29d7b61d63708a53cbb612c0e123 (diff)
[MERGE] forward port branch 11.0 up to 9553240adc4
Diffstat (limited to 'addons/payment_authorize/controllers')
-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 9614327401a..a5f55f07afe 100644
--- a/addons/payment_authorize/controllers/main.py
+++ b/addons/payment_authorize/controllers/main.py
@@ -77,13 +77,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')