Fix getting StripeCustomer from stripe_id
This commit is contained in:
parent
2acb1fb418
commit
251676ead8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue