Many more changes

This commit is contained in:
ahmadbilalkhalid 2020-01-27 13:40:57 +05:00
commit 1a76d2b5f3
11 changed files with 386 additions and 283 deletions

View file

@ -245,13 +245,14 @@ class StripeUtils(object):
return customer
@handle_stripe_error
def create_customer(self, token, email, name=None):
def create_customer(self, token, email, name=None, address=None):
if name is None or name.strip() == "":
name = email
customer = self.stripe.Customer.create(
source=token,
description=name,
email=email
email=email,
address=address
)
return customer