mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +02:00
try to debug the charge webhook issue
This commit is contained in:
parent
5d89cb305d
commit
e8e903bf09
1 changed files with 8 additions and 0 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue