Create HostingBill obj when payment's successful

This commit is contained in:
Modulos 2017-05-09 04:40:41 +02:00
parent 3ee075fad9
commit 38b2aa8986

View file

@ -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()