I have a sinatra app which is set up like this:
我有一个sinatra应用程序,设置如下:
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?
现在,当我为这个url创建自己的POST时,它可以工作。但是,当我在PayPal上进入webhooks模拟器时,我从未收到任何东西。我究竟做错了什么?为什么这个简单的事情不起作用?
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.
注意:Web服务器托管自定义.com域。它在nginx(aka。它使用https)中设置了SSL终止,并通过cloudflare路由。
1 个解决方案
#1
Just tried it, it's working for me. Can you try again and make sure you select an event type.
刚尝试过,它对我有用。你可以再试一次,并确保选择一个事件类型。
#1
Just tried it, it's working for me. Can you try again and make sure you select an event type.
刚尝试过,它对我有用。你可以再试一次,并确保选择一个事件类型。