Add missing billing_address_data

This commit is contained in:
PCoder 2020-12-23 13:07:28 +05:30
parent 2baa77a7d4
commit f6f6482ce0

View file

@ -148,6 +148,7 @@ def handle_webhook(request):
gp_details = "" gp_details = ""
template = "" template = ""
specs = "" specs = ""
billing_address_data = ""
if incomplete_sub.request: if incomplete_sub.request:
request = json.loads(incomplete_sub.request) request = json.loads(incomplete_sub.request)
if incomplete_sub.specs: if incomplete_sub.specs:
@ -162,6 +163,9 @@ def handle_webhook(request):
if incomplete_sub.template: if incomplete_sub.template:
template = json.loads( template = json.loads(
incomplete_sub.template) incomplete_sub.template)
if incomplete_sub.billing_address:
billing_address_data = json.loads(
incomplete_sub.billing_address_data)
logger.debug("*******") logger.debug("*******")
logger.debug(str(incomplete_sub)) logger.debug(str(incomplete_sub))
logger.debug("*******") logger.debug("*******")
@ -187,7 +191,8 @@ def handle_webhook(request):
gp_details=gp_details, gp_details=gp_details,
specs=specs, specs=specs,
vm_template_id=incomplete_sub.vm_template_id, vm_template_id=incomplete_sub.vm_template_id,
template=template template=template,
billing_address_data=billing_address_data
) )
except (IncompleteSubscriptions.DoesNotExist, except (IncompleteSubscriptions.DoesNotExist,
IncompleteSubscriptions.MultipleObjectsReturned) as ex: IncompleteSubscriptions.MultipleObjectsReturned) as ex: