Rename token to id_payment_method

This commit is contained in:
PCoder 2020-12-31 22:43:50 +05:30
commit 7b71ba55f2
2 changed files with 3 additions and 3 deletions

View file

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