From 968eaaf6a40c273d1c7c93128a1e5b53602dd067 Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 23 Dec 2020 20:40:20 +0530 Subject: [PATCH] For generic payments, take users to invoice page after purchase --- datacenterlight/views.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index a59cb325..3f0d87d6 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -987,15 +987,18 @@ class OrderConfirmationView(DetailView, FormView): 'success': { 'status': True, 'redirect': ( - reverse('hosting:virtual_machines') + reverse('hosting:invoices') if request.user.is_authenticated() else reverse('datacenterlight:index') ), 'msg_title': str(_('Thank you for the order.')), 'msg_body': str( - _('Your VM will be up and running in a few moments.' - ' We will send you a confirmation email as soon as' - ' it is ready.')) + _('Your product will be provisioned as soon as' + ' we receive a payment confirmation from ' + 'Stripe. We will send you a confirmation ' + 'email. You can always contact us at ' + 'support@datacenterlight.ch') + ) }, 'error': { 'status': False,