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]