Remove unwanted code/comments

This commit is contained in:
PCoder 2021-01-07 16:30:33 +05:30
commit 1e67bef4f5
4 changed files with 7 additions and 23 deletions

View file

@ -111,7 +111,6 @@ class StripeUtils(object):
@handleStripeError
def update_customer_card(self, customer_id, token):
# TODO replace token with payment intent
customer = stripe.Customer.retrieve(customer_id)
current_card_token = customer.default_source
customer.sources.retrieve(current_card_token).delete()