Add missing billing_address_data

This commit is contained in:
PCoder 2020-12-23 13:07:28 +05:30
parent 2baa77a7d4
commit f6f6482ce0
1 changed files with 6 additions and 1 deletions

View File

@ -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: