Also clear id_payment_method from session

This commit is contained in:
PCoder 2021-01-02 09:02:37 +05:30
parent 1d7c3f424c
commit 44ebb71916

View file

@ -111,7 +111,8 @@ def clear_all_session_vars(request):
'token', 'customer', 'generic_payment_type',
'generic_payment_details', 'product_id',
'order_confirm_url', 'new_user_hosting_key_id',
'vat_validation_status', 'billing_address_id']:
'vat_validation_status', 'billing_address_id',
'id_payment_method']:
if session_var in request.session:
del request.session[session_var]