Bugfix: pass param

This commit is contained in:
PCoder 2019-12-26 11:50:15 +05:30
parent 833dc9bdcb
commit 242dbb2479

View file

@ -642,8 +642,7 @@ class OrderConfirmationView(DetailView, FormView):
vm_specs["price"] = price vm_specs["price"] = price
vat_number = request.session.get('billing_address_data').get("vat_number") vat_number = request.session.get('billing_address_data').get("vat_number")
billing_address = BillingAddress.objects.get( billing_address = BillingAddress.objects.get(id=request.session["billing_address_id"])
request.session["billing_address_id"])
if vat_number: if vat_number:
validate_result = validate_vat_number( validate_result = validate_vat_number(
stripe_customer_id=request.session['customer'], stripe_customer_id=request.session['customer'],