sips2: don't include first/last name in request (#14024)
Unicode is in fact *not* supported by the backend.
This commit is contained in:
parent
ea7e051c9e
commit
4205f7a3fb
|
@ -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, "
|
||||
|
|
|
@ -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'})
|
||||
|
|
Loading…
Reference in New Issue