further cleanups to app.rb

This commit is contained in:
Kyle Drake 2014-12-03 08:50:24 -08:00
parent 4cbcc3a5e9
commit 60e6697529
10 changed files with 261 additions and 279 deletions

8
app/stripe_webhook.rb Normal file
View file

@ -0,0 +1,8 @@
post '/stripe_webhook' do
event = JSON.parse request.body.read
if event['type'] == 'customer.created'
username = event['data']['object']['description']
email = event['data']['object']['email']
end
'ok'
end