From 38b2aa8986e0ba7419086a637bd3266fa9b2a78f Mon Sep 17 00:00:00 2001 From: Modulos Date: Tue, 9 May 2017 04:40:41 +0200 Subject: [PATCH] Create HostingBill obj when payment's successful --- hosting/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosting/views.py b/hosting/views.py index 2bb21af0..ca1e854c 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -321,6 +321,8 @@ class PaymentVMView(LoginRequiredMixin, FormView): # Create a Hosting Order order = HostingOrder.create(vm_plan=plan, customer=customer, billing_address=billing_address) + # Create a Hosting Bill + bill = HostingBill.create(customer=customer, billing_address=billing_address) # Make stripe charge to a customer stripe_utils = StripeUtils()