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'})