summaryrefslogtreecommitdiffstats
path: root/eopayment
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2016-06-24 12:19:41 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2016-06-24 12:19:41 (GMT)
commit9ee9fe567c3cbbff414d90ed72d8e2ec3823bdd0 (patch)
tree2cd4089aa6ab478da97c74278d7b00f40f244c81 /eopayment
parentd0c523ff12f6c1cbc8057174e5117848adc04276 (diff)
downloadeopayment-9ee9fe567c3cbbff414d90ed72d8e2ec3823bdd0.zip
eopayment-9ee9fe567c3cbbff414d90ed72d8e2ec3823bdd0.tar.gz
eopayment-9ee9fe567c3cbbff414d90ed72d8e2ec3823bdd0.tar.bz2
sips2: add capture_day parameter (#11579)v1.12
Diffstat (limited to 'eopayment')
-rw-r--r--eopayment/sips2.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/eopayment/sips2.py b/eopayment/sips2.py
index 79d5c85..018dc87 100644
--- a/eopayment/sips2.py
+++ b/eopayment/sips2.py
@@ -117,6 +117,11 @@ class Payment(PaymentCommon):
'choices': ['AUTHOR_CAPTURE', 'IMMEDIATE', 'VALIDATION'],
'required': True,
},
+ {
+ 'name': 'capture_day',
+ 'caption': _('Capture Day'),
+ 'required': False,
+ },
],
}
@@ -140,6 +145,8 @@ class Payment(PaymentCommon):
data['automaticResponseUrl'] = self.automatic_return_url
data['currencyCode'] = self.currency_code
data['captureMode'] = self.capture_mode
+ if self.capture_day:
+ data['captureDay'] = self.capture_day
return data
def get_url(self):
@@ -154,6 +161,8 @@ class Payment(PaymentCommon):
data['amount'] = unicode(int(Decimal(amount) * 100))
if email:
data['billingContact.email'] = email
+ if 'captureDay' in kwargs:
+ data['captureDay'] == kwargs.get('captureDay')
normal_return_url = self.normal_return_url
if next_url and not normal_return_url:
warnings.warn("passing next_url to request() is deprecated, "