Fix a stupid error in the webhook code.
This commit is contained in:
parent
44e514f49f
commit
0331e88fa2
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ def stripe_webhook():
|
|||
|
||||
event_type = request_data['type'] if 'type' in request_data else None
|
||||
if event_type == 'charge.succeeded':
|
||||
invoice_id = ['data']['object']['invoice']
|
||||
invoice_id = request_data['data']['object']['invoice']
|
||||
|
||||
if user and user.invoice_email:
|
||||
# Lookup the invoice.
|
||||
|
|
Reference in a new issue