Skip SSH key page for generic products page

This commit is contained in:
PCoder 2019-07-01 08:57:39 +05:30
parent 2c74eae3f9
commit 207c3a6c6c

View file

@ -522,6 +522,12 @@ class PaymentOrderView(FormView):
request.session['customer'] = customer.stripe_id
else:
request.session['customer'] = customer
# For generic payment we take the user directly to confirmation
if ('generic_payment_type' in request.session and
self.request.session['generic_payment_type'] == 'generic'):
return HttpResponseRedirect(
reverse('datacenterlight:order_confirmation'))
return HttpResponseRedirect(
reverse('datacenterlight:add_ssh_key'))
else: