mirror of
https://github.com/neocities/neocities.git
synced 2025-08-02 07:41:52 +02:00
further cleanups to app.rb
This commit is contained in:
parent
4cbcc3a5e9
commit
60e6697529
10 changed files with 261 additions and 279 deletions
8
app/stripe_webhook.rb
Normal file
8
app/stripe_webhook.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue