From 95daa3767053005a9a5afb964f8487f6c6b1d7fa Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 16 Apr 2018 01:32:38 +0200 Subject: [PATCH] Use total_price for amout to be charged, always --- datacenterlight/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index 3710d41b..e76ef31d 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -421,7 +421,7 @@ class OrderConfirmationView(DetailView): cpu = specs.get('cpu') memory = specs.get('memory') disk_size = specs.get('disk_size') - amount_to_be_charged = specs.get('price') + amount_to_be_charged = specs.get('total_price') plan_name = StripeUtils.get_stripe_plan_name(cpu=cpu, memory=memory, disk_size=disk_size)