From 7b71ba55f206c31e020bc9c71678b822bc8df38c Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 31 Dec 2020 22:43:50 +0530 Subject: [PATCH] Rename token to id_payment_method --- datacenterlight/views.py | 4 ++-- membership/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index fcc423bd..cf920579 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -504,7 +504,7 @@ class PaymentOrderView(FormView): ) customer = StripeCustomer.create_stripe_api_customer( email=user_email, - token=id_payment_method, + id_payment_method=id_payment_method, customer_name=user_name) except CustomUser.DoesNotExist: logger.debug( @@ -515,7 +515,7 @@ class PaymentOrderView(FormView): ) customer = StripeCustomer.create_stripe_api_customer( email=user_email, - token=id_payment_method, + id_payment_method=id_payment_method, customer_name=user_name) billing_address = address_form.save() diff --git a/membership/models.py b/membership/models.py index 079b60e0..8de99468 100644 --- a/membership/models.py +++ b/membership/models.py @@ -277,7 +277,7 @@ class StripeCustomer(models.Model): return "%s - %s" % (self.stripe_id, self.user.email) @classmethod - def create_stripe_api_customer(cls, email=None, token=None, + def create_stripe_api_customer(cls, email=None, id_payment_method=None, customer_name=None): """ This method creates a Stripe API customer with the given