From f6f6482ce08b6c5d67603e0ac8f558786ca70bc5 Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 23 Dec 2020 13:07:28 +0530 Subject: [PATCH] Add missing billing_address_data --- webhook/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webhook/views.py b/webhook/views.py index ecd44306..0b3c4e30 100644 --- a/webhook/views.py +++ b/webhook/views.py @@ -148,6 +148,7 @@ def handle_webhook(request): gp_details = "" template = "" specs = "" + billing_address_data = "" if incomplete_sub.request: request = json.loads(incomplete_sub.request) if incomplete_sub.specs: @@ -162,6 +163,9 @@ def handle_webhook(request): if incomplete_sub.template: template = json.loads( incomplete_sub.template) + if incomplete_sub.billing_address: + billing_address_data = json.loads( + incomplete_sub.billing_address_data) logger.debug("*******") logger.debug(str(incomplete_sub)) logger.debug("*******") @@ -187,7 +191,8 @@ def handle_webhook(request): gp_details=gp_details, specs=specs, vm_template_id=incomplete_sub.vm_template_id, - template=template + template=template, + billing_address_data=billing_address_data ) except (IncompleteSubscriptions.DoesNotExist, IncompleteSubscriptions.MultipleObjectsReturned) as ex: