User customer's name instead of email for cardholder_name if not provided
This commit is contained in:
parent
1f85273fd0
commit
10bc05f700
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ class MembershipPaymentView(LoginRequiredMixin, IsNotMemberMixin, FormView):
|
|||
if 'source' in charge:
|
||||
cardholder_name = charge['source']['name']
|
||||
else:
|
||||
cardholder_name = customer.user.email
|
||||
cardholder_name = customer.user.name
|
||||
|
||||
# Create Billing Address
|
||||
billing_address = form.save()
|
||||
|
|
Loading…
Reference in a new issue