summaryrefslogtreecommitdiffstats
path: root/eopayment
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2016-09-12 14:21:31 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2016-09-12 14:34:14 (GMT)
commit8320be27ddd8fed8f19f9925b1bef36924ce3218 (patch)
tree220b14eaea278ac67eabc6d9db9c841c8db0cd16 /eopayment
parentb8e60c72d2f994eac74c69d69576144b1d78a10b (diff)
downloadeopayment-8320be27ddd8fed8f19f9925b1bef36924ce3218.zip
eopayment-8320be27ddd8fed8f19f9925b1bef36924ce3218.tar.gz
eopayment-8320be27ddd8fed8f19f9925b1bef36924ce3218.tar.bz2
sips2: pass user's first and last names in allowed attributes (#12447)v1.14
Diffstat (limited to 'eopayment')
-rw-r--r--eopayment/sips2.py5
1 files changed, 4 insertions, 1 deletions
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, "