try to debug the charge webhook issue

This commit is contained in:
Kyle Drake 2015-05-10 10:31:22 -07:00
parent 5d89cb305d
commit e8e903bf09

View file

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