I have a sinatra app which is set up like this:
class AppName < Sinatra::Base
#...
post '/paypalhook' do
puts "got info about something from paypal"
puts params.inspect
return params.to_s
end
#...
end
Now, when I create my own POST
s to this url, it works. However, when I go into webhooks simulator on PayPal, I never receive anything. What am I doing wrong? Why isn't this simple thing working?
Notes:
The webserver is hosted with custom .com domain. It is set up with SSL termination in nginx (aka. It uses https
), and routed through cloudflare.