Added credit card details as param for create_vm_task
This commit is contained in:
		
					parent
					
						
							
								b5e488e326
							
						
					
				
			
			
				commit
				
					
						0256b0bf03
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue