allegroplanet / allegro-planet

1 stars 1 forks source link

Use Request Body as Param for Webhook Payload #57

Closed MarkOates closed 7 years ago

MarkOates commented 7 years ago

Due to the tutorial, it was assumed the payload would be provided in params[:payload]. However, it's actually in the body, which can be pulled from request.raw_post.

Related: https://github.com/allegroplanet/allegro-planet/pull/55, https://github.com/allegroplanet/allegro-planet/pull/56