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