summaryrefslogtreecommitdiffstats
path: root/eopayment/systempayv2.py
diff options
context:
space:
mode:
Diffstat (limited to 'eopayment/systempayv2.py')
-rw-r--r--eopayment/systempayv2.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/eopayment/systempayv2.py b/eopayment/systempayv2.py
index 31731fd..d25a89f 100644
--- a/eopayment/systempayv2.py
+++ b/eopayment/systempayv2.py
@@ -246,6 +246,13 @@ class Payment(PaymentCommon):
{'name': 'secret_production',
'caption': _(u'Secret pour la configuration de PRODUCTION'),
'validation': lambda value: str.isdigit(value), },
+ {
+ 'name': 'manual_validation',
+ 'caption': 'Validation manuelle',
+ 'type': bool,
+ 'default': False,
+ 'scope': 'transaction'
+ }
]
}
@@ -267,9 +274,10 @@ class Payment(PaymentCommon):
options = add_vads(options)
self.options = options
+
def request(self, amount, name=None, first_name=None, last_name=None,
address=None, email=None, phone=None, orderid=None, info1=None,
- info2=None, info3=None, next_url=None, **kwargs):
+ info2=None, info3=None, next_url=None, manual_validation=None, **kwargs):
'''
Create the URL string to send a request to SystemPay
'''
@@ -338,6 +346,8 @@ class Payment(PaymentCommon):
capture_day = fields.pop('capture_day')
if capture_day:
fields['vads_capture_delay'] = capture_day
+ if manual_validation:
+ fields['vads_validation_mode'] = '1'
check_vads(fields)
fields[SIGNATURE] = force_text(self.signature(fields))
self.logger.debug('%s request contains fields: %s', __name__, fields)