Use payment method instead of token and PaymentIntent all over
This commit is contained in:
parent
35cc9d4229
commit
c3286a68a5
8 changed files with 245 additions and 121 deletions
|
|
@ -296,7 +296,7 @@ class StripeCustomer(models.Model):
|
|||
return None
|
||||
|
||||
@classmethod
|
||||
def get_or_create(cls, email=None, token=None):
|
||||
def get_or_create(cls, email=None, token=None, id_payment_method=None):
|
||||
"""
|
||||
Check if there is a registered stripe customer with that email
|
||||
or create a new one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue