Load request object correctly and pass correct subscription object
This commit is contained in:
parent
92bafed3b3
commit
c70753767f
1 changed files with 2 additions and 3 deletions
|
@ -146,14 +146,13 @@ def handle_webhook(request):
|
||||||
logger.debug(incomplete_sub)
|
logger.debug(incomplete_sub)
|
||||||
logger.debug("*******")
|
logger.debug("*******")
|
||||||
do_create_vm(
|
do_create_vm(
|
||||||
request=incomplete_sub.request,
|
request=json.loads(incomplete_sub.request),
|
||||||
user={'name': incomplete_sub.name,
|
user={'name': incomplete_sub.name,
|
||||||
'email': incomplete_sub.email},
|
'email': incomplete_sub.email},
|
||||||
stripe_api_cus_id=incomplete_sub.stripe_api_cus_id,
|
stripe_api_cus_id=incomplete_sub.stripe_api_cus_id,
|
||||||
card_details_response=json.loads(
|
card_details_response=json.loads(
|
||||||
incomplete_sub.card_details_response),
|
incomplete_sub.card_details_response),
|
||||||
stripe_subscription_obj=json.loads(
|
stripe_subscription_obj=stripe_subscription_obj,
|
||||||
incomplete_sub.stripe_subscription_obj),
|
|
||||||
stripe_onetime_charge=json.loads(
|
stripe_onetime_charge=json.loads(
|
||||||
incomplete_sub.stripe_onetime_charge),
|
incomplete_sub.stripe_onetime_charge),
|
||||||
gp_details=json.loads(incomplete_sub.gp_details),
|
gp_details=json.loads(incomplete_sub.gp_details),
|
||||||
|
|
Loading…
Reference in a new issue