#Aniket

1 messages ยท Page 1 of 1 (latest)

haughty merlin
#

Hi ๐Ÿ‘‹ if you use your testmode secret key, then all of the requests that you make will be made in testmode, and the resulting events will be detected by your testmode webhook endpoints. However, you can your testmode webhook endpoint to any endpoint that you desire, but mixing test and production data sounds risky.

zenith jackal
#

I've a webhook in my dev account using the stripe account header, I'm making connected accounts and also checkout session.

Can that webhook listen to 'payment_intent.succeeded' events for all another connected accounts.

I can see all the connected accounts from my dashboard and I'm using my account credentials to make another connected accs.

haughty merlin
#

There are two types of webhook endpoints, one listens to events from your account, and the other listens for events generated by your connected accounts. When creating webhook endpoints via the dashboard, there is a radio button to switch between the available types, and via the API you use the connect parameter to control which type of endpoint is created:
https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-connect

zenith jackal
#

It's a connect webhook to listen to the 'payment_intent.succeeded' events for other connected accounts

#

But I'm not sure it's working. Do I need to make a separate webhook for each created connected account using my account credentials using stripe account header?

haughty merlin
#

No, if you created that webhook endpoint on your Platform account, then it will listen for events from all Connected accounts that are attached to that platform.

#

If you created that endpoint on one of your Connected accounts though, then it won't work because it will be trying to listen for events from that account's Connected accounts.

zenith jackal
#

That's how I supposed it to work in my production app. But it's not working. But I'm gonna give it a try again by making a payment from my platform's connected account and will see in the event for any webhook information.

#

Thank for the help @haughty merlin.

haughty merlin
#

Happy to help! I've got to step away, but if that testing still doesn't show the results that you're hoping for then my teammate @worn laurel can help further.

zenith jackal
#

Hi there

#

Does above mean that Stripe has scheduled to send a post request to my hosted webhook url at 03:05pm today?

worn laurel
#

No it's saying at 3:05 it already sent a request to your endpoint. The timezone might not be your local timezone though

#

If you see the 200 response, you can tell it already reached your endpoint

#

You can change your timezone if you want