summaryrefslogtreecommitdiffstats
path: root/eopayment/paybox.py
diff options
context:
space:
mode:
Diffstat (limited to 'eopayment/paybox.py')
-rw-r--r--eopayment/paybox.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/eopayment/paybox.py b/eopayment/paybox.py
index 4c34731..cf17ace 100644
--- a/eopayment/paybox.py
+++ b/eopayment/paybox.py
@@ -247,10 +247,17 @@ class Payment(PaymentCommon):
'required': False,
'choices': PAYMENT_MODES.keys()
},
+ {
+ 'name': 'manual_validation',
+ 'caption': 'Validation manuelle',
+ 'type': bool,
+ 'default': False,
+ 'scope': 'transaction'
+ }
]
}
- def request(self, amount, email, name=None, orderid=None, **kwargs):
+ def request(self, amount, email, name=None, orderid=None, manual_validation=None, **kwargs):
d = OrderedDict()
d['PBX_SITE'] = force_text(self.site)
d['PBX_RANG'] = force_text(self.rang).strip()[-2:]
@@ -283,6 +290,8 @@ class Payment(PaymentCommon):
if capture_day:
d['PBX_DIFF'] = capture_day.zfill(2)
d['PBX_AUTOSEULE'] = PAYMENT_MODES[self.capture_mode]
+ if manual_validation:
+ d['PBX_AUTOSEULE'] = PAYMENT_MODES['AUTHOR_CAPTURE']
if automatic_return_url:
d['PBX_REPONDRE_A'] = force_text(automatic_return_url)
d = d.items()