Fix getting StripeCustomer from stripe_id

This commit is contained in:
PCoder 2020-01-01 00:52:07 +05:30
parent 2acb1fb418
commit 251676ead8

View file

@ -74,7 +74,7 @@ def handle_webhook(request):
tax_id_obj.verification.status))
stripe_customer = None
try:
stripe_customer = StripeCustomer.objects.get(tax_id_obj.customer)
stripe_customer = StripeCustomer.objects.get(stripe_id=tax_id_obj.customer)
except StripeCustomer.DoesNotExist as dne:
logger.debug(
"StripeCustomer %s does not exist" % tax_id_obj.customer)