Fixed error creating stripe customer
This commit is contained in:
parent
4d47564ea6
commit
c4bf4fc6ff
1 changed files with 2 additions and 1 deletions
|
@ -141,9 +141,10 @@ class StripeCustomer(models.Model):
|
|||
|
||||
stripe_utils = StripeUtils()
|
||||
stripe_data = stripe_utils.create_customer(token, email)
|
||||
stripe_cus_id = stripe_data.get('response_object').get('id')
|
||||
|
||||
stripe_customer = StripeCustomer.objects.\
|
||||
create(user=user, stripe_id=stripe_data.get('id'))
|
||||
create(user=user, stripe_id=stripe_cus_id)
|
||||
|
||||
return stripe_customer
|
||||
|
||||
|
|
Loading…
Reference in a new issue