#anjali - webhook endpoints

1 messages ยท Page 1 of 1 (latest)

shrewd obsidian
#

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?

versed ice
#

yes

shrewd obsidian
#

Which one?

versed ice
#

I want to check whether onboarding event is completed or not

#

$payload = @file_get_contents('php://input');

#

this line of code?

shrewd obsidian
#

Are you receiving events and trying to verify signature and encountering an error at that point?

versed ice
#

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?

shrewd obsidian
#

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

versed ice
#

yes

shrewd obsidian
#

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

#

You'd also be able to listen to account.updated webhooks and examine this information

versed ice
#

first I need to retrieve the account information, right?

shrewd obsidian
#

If you want to know the status from your return url, yes

versed ice
#

ok