Many more changes
This commit is contained in:
parent
da54a59ca2
commit
1a76d2b5f3
11 changed files with 386 additions and 283 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue