Remove redundant code

This commit is contained in:
PCoder 2018-07-05 09:58:07 +02:00
parent 8d7b01d7e2
commit faa0604fae

View file

@ -671,15 +671,6 @@ class OrderConfirmationView(DetailView):
'user': custom_user.id
})
if 'token' in request.session:
ucd = UserCardDetail.get_or_create_user_card_detail(
stripe_customer=stripe_customer,
card_details=card_details_dict
)
UserCardDetail.save_default_card_local(
stripe_customer.stripe_id,
ucd.card_id
)
user = {
'name': custom_user.name,
'email': custom_user.email,