#Aniket
1 messages ยท Page 1 of 1 (latest)
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.
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.
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
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.
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.
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.
Hi there
Does above mean that Stripe has scheduled to send a post request to my hosted webhook url at 03:05pm today?
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
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
You can change your timezone if you want