Use payment method instead of token and PaymentIntent all over

This commit is contained in:
PCoder 2020-12-31 10:04:21 +05:30
commit c3286a68a5
8 changed files with 245 additions and 121 deletions

View file

@ -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