From 0331e88fa2f4cd087708333d9a5d1a318f19c380 Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Mon, 28 Apr 2014 12:47:48 -0400 Subject: [PATCH] Fix a stupid error in the webhook code. --- endpoints/webhooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/webhooks.py b/endpoints/webhooks.py index d8fa1e7e4..bf32c53d2 100644 --- a/endpoints/webhooks.py +++ b/endpoints/webhooks.py @@ -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.