Skip to content

Instantly share code, notes, and snippets.

@chuchuva
Created November 8, 2023 21:37
Show Gist options
  • Save chuchuva/052cf3c472289a6acba6808e5e84a6eb to your computer and use it in GitHub Desktop.
Save chuchuva/052cf3c472289a6acba6808e5e84a6eb to your computer and use it in GitHub Desktop.
How to test Stripe webhook from Postman
# instead of event = Stripe::Webhook.construct_event(payload, signature, ENDPOINT_SECRET)
data = JSON.parse(payload, symbolize_names: true)
event = Stripe::Event.construct_from(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment