Merge pull request #55 from levivm/feature/vm_pricing
Fixed error creating stripe customer
This commit is contained in:
commit
3b3a366c23
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