From 4205f7a3fb17e1c175d738e8da8aeecd3c46da61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 20 Nov 2016 16:52:22 +0100 Subject: [PATCH] sips2: don't include first/last name in request (#14024) Unicode is in fact *not* supported by the backend. --- eopayment/sips2.py | 4 ---- tests/test_sips2.py | 4 ++-- 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'})