sips2: pass user's first and last names in allowed attributes (#12447)

This commit is contained in:
Serghei Mihai 2016-09-12 16:21:31 +02:00
parent b8e60c72d2
commit 8320be27dd
1 changed files with 4 additions and 1 deletions

View File

@ -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, "