From e8e903bf09b3bf2471409e712e02d332e5a4c1b3 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 10 May 2015 10:31:22 -0700 Subject: [PATCH] try to debug the charge webhook issue --- app/stripe_webhook.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/stripe_webhook.rb b/app/stripe_webhook.rb index f46b7934..04bae724 100644 --- a/app/stripe_webhook.rb +++ b/app/stripe_webhook.rb @@ -14,6 +14,14 @@ post '/stripe_webhook' do end if event['type'] == 'charge.failed' + + EmailWorker.perform_async({ + from: 'web@neocities.org', + to: 'kyle@neocities.org', + subject: "[Neocities] charge.failed debug", + body: event.inspect + }) + site_id = event['data']['object']['description'].split(' - ').last site = Site[site_id]