Fix a stupid error in the webhook code.

This commit is contained in:
Jake Moshenko 2014-04-28 12:47:48 -04:00
parent 44e514f49f
commit 0331e88fa2

View file

@ -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.