Add missing card_id to session variables to be cleared

This commit is contained in:
PCoder 2017-10-29 22:54:33 +01:00
parent 4be2796270
commit 83dbae74e6

View file

@ -765,7 +765,7 @@ class OrderConfirmationView(DetailView):
HostingUtils.clear_items_from_list(
request.session,
['specs', 'template', 'billing_address', 'billing_address_data',
'token', 'customer']
'token', 'customer', 'card_id']
)
if request.user.is_authenticated():
redirect_url = reverse('hosting:virtual_machines')