#anjali - webhook endpoints
1 messages ยท Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐
to clarify, are you having an issue creating an endpoint, or verifying signature when receiving events?
yes
Which one?
I want to check whether onboarding event is completed or not
$payload = @file_get_contents('php://input');
this line of code?
Can you explain some more about what you're trying to do?
Are you receiving events and trying to verify signature and encountering an error at that point?
I am modifying my refersh and return url
based on the response
For the onboarding process, I need to know that the connecetd completes its process or not
Is that possible?
So there are a couple of aspects to this
After completing or existing onboarding, the account holder would be redirected back to your return_url
yes
You could then retrieve their account from the API to inspect if they've fulfilled all requirements and if they have details_submitted in the case of standard accounts
https://stripe.com/docs/api/accounts/object#account_object-requirements
https://stripe.com/docs/api/accounts/object#account_object-details_submitted
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You'd also be able to listen to account.updated webhooks and examine this information
You'll likely also want to watch this to see when the capabilities become active: https://stripe.com/docs/api/accounts/object#account_object-capabilities
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
first I need to retrieve the account information, right?
If you want to know the status from your return url, yes
ok