Create HostingBill obj when payment's successful
This commit is contained in:
parent
3ee075fad9
commit
38b2aa8986
1 changed files with 2 additions and 0 deletions
|
@ -321,6 +321,8 @@ class PaymentVMView(LoginRequiredMixin, FormView):
|
||||||
# Create a Hosting Order
|
# Create a Hosting Order
|
||||||
order = HostingOrder.create(vm_plan=plan, customer=customer,
|
order = HostingOrder.create(vm_plan=plan, customer=customer,
|
||||||
billing_address=billing_address)
|
billing_address=billing_address)
|
||||||
|
# Create a Hosting Bill
|
||||||
|
bill = HostingBill.create(customer=customer, billing_address=billing_address)
|
||||||
|
|
||||||
# Make stripe charge to a customer
|
# Make stripe charge to a customer
|
||||||
stripe_utils = StripeUtils()
|
stripe_utils = StripeUtils()
|
||||||
|
|
Loading…
Reference in a new issue