Skip to content
Permalink
Browse files

[FIX] payment_ogone: send client info in S2S tx data

The client IP and email are useful pieces of information for auditing
transactions, and are used by the Fraud Detection Module(s) of Ingenico.

closes #32058

Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
  • Loading branch information...
odony committed Mar 14, 2019
1 parent 6878c9f commit 28a1371035fae9892e1ceeb6c9edd7ddda806ed5
Showing with 7 additions and 1 deletion.
  1. +7 −1 addons/payment_ogone/models/payment.py
@@ -15,6 +15,7 @@
from odoo.addons.payment.models.payment_acquirer import ValidationError
from odoo.addons.payment_ogone.controllers.main import OgoneController
from odoo.addons.payment_ogone.data import ogone
from odoo.http import request
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT, ustr
from odoo.tools.float_utils import float_compare, float_repr, float_round

@@ -356,9 +357,14 @@ def ogone_s2s_do_transaction(self, **kwargs):
'ECI': 9, # Recurring (from eCommerce)
'ALIAS': self.payment_token_id.acquirer_ref,
'RTIMEOUT': 30,
'PARAMPLUS' : url_encode(param_plus)
'PARAMPLUS': url_encode(param_plus),
'EMAIL': self.partner_id.email or '',
'CN': self.partner_id.name or '',
}

if request:
data['REMOTE_ADDR'] = request.httprequest.remote_addr

if kwargs.get('3d_secure'):
data.update({
'FLAG3D': 'Y',

0 comments on commit 28a1371

Please sign in to comment.
You can’t perform that action at this time.