Added credit card details as param for create_vm_task

This commit is contained in:
PCoder 2017-08-24 11:49:41 +05:30
parent b5e488e326
commit 0256b0bf03

View file

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