From 0256b0bf03f283294ed5b4612c063d2e13dfb1fe Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 24 Aug 2017 11:49:41 +0530 Subject: [PATCH] Added credit card details as param for create_vm_task --- datacenterlight/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datacenterlight/tasks.py b/datacenterlight/tasks.py index 69929ed9..1e3e1caa 100644 --- a/datacenterlight/tasks.py +++ b/datacenterlight/tasks.py @@ -44,7 +44,7 @@ def retry_task(task, exception=None): def create_vm_task(self, vm_template_id, user, specs, template, stripe_customer_id, billing_address_data, billing_address_id, - charge): + charge, cc_details): vm_id = None try: final_price = specs.get('price') @@ -93,7 +93,7 @@ def create_vm_task(self, vm_template_id, user, specs, template, # Associate an order with a stripe subscription charge_object = DictDotLookup(charge) - order.set_subscription_id(charge_object) + order.set_subscription_id(charge_object, cc_details) # If the Stripe payment succeeds, set order status approved order.set_approved()