[FIX] payment_ogone: use correct ECI code

According to Ingenico's documentation, the right transaction origin
(ECI) code to use for recurring transactions is 9.
ECI value 2 is used for recurring MOTO transactions (mail/telephone
orders), which require special authorizations.

Switch to the eCommerce code 9 to make Ingenico subscriptions/contracts
easier to obtain.

Source: https://payment-services.ingenico.com/int/en/ogone/support/guides/integration%20guides/directlink#requestparameters
This commit is contained in:
Olivier Dony
2018-05-17 16:51:04 +02:00
parent f1330d0709
commit 0ee73b1cc3
+1 -1
View File
@@ -357,7 +357,7 @@ class PaymentTxOgone(models.Model):
'AMOUNT': int(self.amount * 100),
'CURRENCY': self.currency_id.name,
'OPERATION': 'SAL',
'ECI': 2, # Recurring (from MOTO)
'ECI': 9, # Recurring (from eCommerce)
'ALIAS': self.payment_token_id.acquirer_ref,
'RTIMEOUT': 30,
'PARAMPLUS' : url_encode(param_plus)