summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2016-11-20 15:52:22 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2016-11-20 15:52:22 (GMT)
commit4205f7a3fb17e1c175d738e8da8aeecd3c46da61 (patch)
tree73c02796e423ce085bfa142d57ad07be73e27b7f
parentea7e051c9eaf9fb8783dceba001cde146aecbeff (diff)
downloadeopayment-4205f7a3fb17e1c175d738e8da8aeecd3c46da61.zip
eopayment-4205f7a3fb17e1c175d738e8da8aeecd3c46da61.tar.gz
eopayment-4205f7a3fb17e1c175d738e8da8aeecd3c46da61.tar.bz2
sips2: don't include first/last name in request (#14024)v1.18
Unicode is in fact *not* supported by the backend.
-rw-r--r--eopayment/sips2.py4
-rw-r--r--tests/test_sips2.py4
2 files changed, 2 insertions, 6 deletions
diff --git a/eopayment/sips2.py b/eopayment/sips2.py
index 3e434a9..91cf200 100644
--- a/eopayment/sips2.py
+++ b/eopayment/sips2.py
@@ -172,10 +172,6 @@ class Payment(PaymentCommon):
data['billingContact.email'] = email
if 'captureDay' in kwargs:
data['captureDay'] == kwargs.get('captureDay')
- if first_name:
- data['billingContact.firstname'] = first_name
- if last_name:
- data['billingContact.lastname'] = last_name
normal_return_url = self.normal_return_url
if next_url and not normal_return_url:
warnings.warn("passing next_url to request() is deprecated, "
diff --git a/tests/test_sips2.py b/tests/test_sips2.py
index d76a6be..e2d77ba 100644
--- a/tests/test_sips2.py
+++ b/tests/test_sips2.py
@@ -5,9 +5,9 @@ import eopayment
def test_build_request():
backend = eopayment.Payment('sips2', {})
transaction, f, form = backend.request(amount=u'12', last_name=u'Foo',
- first_name=u'Félix')
+ first_name=u'Félix000000')
data = [f for f in form.fields if f['name'] == 'Data']
- assert u'Félix' in data[0]['value']
+ assert not u'lix000000' in data[0]['value']
def test_options():
payment = eopayment.Payment('sips2', {'capture_mode': u'VALIDATION'})