Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

How do I read an incoming webhook post in Rails 4.2

General • Asked by Aaron Mills

I have something along the lines of this:

case request.request_parameters.keys.first
when "new_subscription_notification"
when "canceled_subscription_notification"
deactivate_subscription params[:expired_subscription_notification]

But what I am finding is that the XML webhook request parameters seem to be blank. This is my first time trying to read webhook notifications.. any direction on how to correctly parse an incoming webhook would be awesome!

Hey Aaron,

That all sort of depends on what information is being sent to your webhook. Where is it coming from? What do the params look like? Have any example stuff we can take a look at to get you headed in the right direction?

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.