diff options
| author | Nikunj Ladava <nla@odoo.com> | 2019-07-03 11:18:57 +0000 |
|---|---|---|
| committer | Damien Bouvy <dbo@odoo.com> | 2019-08-07 11:27:44 +0000 |
| commit | a4f8616a178662434964de5fbee4c35637b9e1bc (patch) | |
| tree | e5e873fa1e1b17c644672598f19c69e4cc4a681d /addons/payment_authorize/controllers/main.py | |
| parent | 26f3d8465d3c6f1da80c18605d5fa8a953feb779 (diff) | |
[IMP] payment_authorize: integration with accept js
add accept js of authorize.net to make s2s flow pci compliance
after clicking on pay now button, one popup display with card inputs
popup is provided by a authorize with all validation facilities
After submitting details, payment flow is
- get the temp token information from authorize
- create a token with that temp token information in odoo
- make a request to authorize for charge
- after successful request, payment will be charged for that card
task- 2025821
Diffstat (limited to 'addons/payment_authorize/controllers/main.py')
| -rw-r--r-- | addons/payment_authorize/controllers/main.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/addons/payment_authorize/controllers/main.py b/addons/payment_authorize/controllers/main.py index cf6877218db..49f919f4198 100644 --- a/addons/payment_authorize/controllers/main.py +++ b/addons/payment_authorize/controllers/main.py @@ -30,19 +30,6 @@ class AuthorizeController(http.Controller): 'return_url': urls.url_join(base_url, "/payment/process") }) - @http.route(['/payment/authorize/s2s/create_json'], type='json', auth='public') - def authorize_s2s_create_json(self, **kwargs): - acquirer_id = int(kwargs.get('acquirer_id')) - acquirer = request.env['payment.acquirer'].browse(acquirer_id) - if not kwargs.get('partner_id'): - kwargs = dict(kwargs, partner_id=request.env.user.partner_id.id) - try: - return acquirer.s2s_process(kwargs).id - except (ValidationError, UserError) as e: - return { - 'error': e.name, - } - @http.route(['/payment/authorize/s2s/create_json_3ds'], type='json', auth='public', csrf=False) def authorize_s2s_create_json_3ds(self, verify_validity=False, **kwargs): token = False |
