Reset vat_validation_status when on payment page

This commit is contained in:
PCoder 2020-01-26 10:06:31 +05:30
parent d1fd57b730
commit cde6c51d4b

View file

@ -309,6 +309,7 @@ class PaymentOrderView(FormView):
@cache_control(no_cache=True, must_revalidate=True, no_store=True)
def get(self, request, *args, **kwargs):
request.session.pop('vat_validation_status')
if (('type' in request.GET and request.GET['type'] == 'generic')
or 'product_slug' in kwargs):
request.session['generic_payment_type'] = 'generic'