Formatting and documentation
This commit is contained in:
parent
6e6a57b304
commit
9faf897818
2 changed files with 10 additions and 5 deletions
|
|
@ -288,7 +288,8 @@ class StripeCustomer(models.Model):
|
|||
stripe user.
|
||||
"""
|
||||
stripe_utils = StripeUtils()
|
||||
stripe_data = stripe_utils.create_customer(token, email, customer_name)
|
||||
stripe_data = stripe_utils.create_customer(
|
||||
id_payment_method, email, customer_name)
|
||||
if stripe_data.get('response_object'):
|
||||
stripe_cus_id = stripe_data.get('response_object').get('id')
|
||||
return stripe_cus_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue