Bugfix: pass correct param
This commit is contained in:
		
					parent
					
						
							
								785f99311d
							
						
					
				
			
			
				commit
				
					
						de0fe77779
					
				
			
		
					 2 changed files with 2 additions and 9 deletions
				
			
		| 
						 | 
					@ -179,7 +179,7 @@ def create_tax_id(stripe_customer_id, vat_number):
 | 
				
			||||||
    stripe_utils = StripeUtils()
 | 
					    stripe_utils = StripeUtils()
 | 
				
			||||||
    tax_id_response = stripe_utils.create_tax_id_for_user(
 | 
					    tax_id_response = stripe_utils.create_tax_id_for_user(
 | 
				
			||||||
        stripe_customer_id,
 | 
					        stripe_customer_id,
 | 
				
			||||||
        value=vat_number,
 | 
					        vat_number=vat_number,
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    tax_id_obj = tax_id_response.get('response_object')
 | 
					    tax_id_obj = tax_id_response.get('response_object')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -548,14 +548,7 @@ class PaymentOrderView(FormView):
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if 'response_object' in validate_result:
 | 
					            if 'response_object' in validate_result:
 | 
				
			||||||
                address_form.add_error(
 | 
					                raise forms.ValidationError(validate_result["error"])
 | 
				
			||||||
                    "__all__", validate_result["error"]
 | 
					 | 
				
			||||||
                )
 | 
					 | 
				
			||||||
                return self.render_to_response(
 | 
					 | 
				
			||||||
                    self.get_context_data(
 | 
					 | 
				
			||||||
                        billing_address_form=address_form
 | 
					 | 
				
			||||||
                    )
 | 
					 | 
				
			||||||
                )
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            request.session["vat_validation_status"] = validate_result["status"]
 | 
					            request.session["vat_validation_status"] = validate_result["status"]
 | 
				
			||||||
            request.session["vat_validated_on"] = validate_result["validated_on"]
 | 
					            request.session["vat_validated_on"] = validate_result["validated_on"]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue