Contents of webhook payload? #147
Unanswered
gmgarrison
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all - I've got the package installed and configured and have verified that the Stripe's webhook calls do get logged in the database. I'm trying to take the event handling approach to those calls. I've read the documentation and I think I understand how to configure the listeners for each webhook type.
What I don't understand is when I get into the handle method, what exactly is in $webhookCall? I've tried setting up my local environment to test it with ngrok but that hasn't gone well. It also seems like something that makes sense to add to the documentation?
I've examined the payload in the database (and Stripe's documentation) but how exactly does this relate to the $webhookCall? Is it stored as a JSON string? An array from the JSON? I've verified that all the data I want is in the metadata field - would that be $webhookCall->data->object->metadata? Array notation? Other processing?
Thanks for any pointers!!
Beta Was this translation helpful? Give feedback.
All reactions