diff --git a/datacenterlight/views.py b/datacenterlight/views.py index 233edb20..17a0479f 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -935,6 +935,7 @@ class OrderConfirmationView(DetailView, FormView): [{"plan": stripe_plan.get('response_object').stripe_plan_id}], coupon=(discount['stripe_coupon_id'] if 'name' in discount and + discount['name'] is not None and 'ipv6' in discount['name'].lower() and discount['stripe_coupon_id'] else ""), diff --git a/hosting/views.py b/hosting/views.py index 969523b3..1d16a750 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -1187,6 +1187,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView, FormView): [{"plan": stripe_plan.get('response_object').stripe_plan_id}], coupon=(discount['stripe_coupon_id'] if 'name' in discount and + discount['name'] is not None and 'ipv6' in discount['name'].lower() and discount['stripe_coupon_id'] else ""),