From 8320be27ddd8fed8f19f9925b1bef36924ce3218 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Mon, 12 Sep 2016 16:21:31 +0200 Subject: [PATCH] sips2: pass user's first and last names in allowed attributes (#12447) --- eopayment/sips2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eopayment/sips2.py b/eopayment/sips2.py index e7b5b8f..3e434a9 100644 --- a/eopayment/sips2.py +++ b/eopayment/sips2.py @@ -172,7 +172,10 @@ class Payment(PaymentCommon): data['billingContact.email'] = email if 'captureDay' in kwargs: data['captureDay'] == kwargs.get('captureDay') - data['customerId'] = unicode(name or ' '.join(filter(None, [first_name, last_name]))) + 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, "