Closed dfguo closed 11 years ago
A 401 is returned if the event can't be retrieved from Stripe. Can you provide any additional information?
I am doing local dev testing using localtunnel. When I send test events to my endpoint. I got a 401. When I used: StripeEvent.event_retriever = Proc.new { |params| params }
it then gave me
StripeEvent::InvalidEventTypeError (Event type was not present for: {"controller"=>"stripe_event/webhook", "action"=>"event"}):
thanks.
Is the Stripe.api_key
value set? In rails console can you run Stripe::Event.all
?
yes, it gives me all the events.
Can you post the request parameters from the server log? I will take a look tomorrow.
@dfguo Still having problems?
Sorry that I ended up writing my own solution. The request parameter is {"controller"=>"stripe_event/webhook", "action"=>"event"}):
not so sure why I got this eror on any event.