#0xl34n_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1235288502506225764
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
I show that event was sent only to your CLI. Have you created a separate Webhook Endpoint for the server you're running?
Yes.. That's OK?
Because i resently click in "Send test events" and nothing happen..
I'm working with this months ago, but i don't know what happen with this new Account
I already test my handlers
Hello??
Apologies for the wait. The server is very busy, so please be patient
Can you try creating the webhook endpoint outside of Workbench?
E.g. the method mentioned in the docs I sent
I dont know how to desable Workbench
But my first webhooks it was created outside of workbench
Right, but you don't need to disable it. You just need to register a new webhook endpoint by following these instructions: https://docs.stripe.com/webhooks#register-webhook
I did just that a moment ago and nothing.
Did you trigger a new event to get sent to that endpoint?
I think that's because you create a webhook endpoint that listens to Connect events, as opposed to platform (e.g. your Stripe account's) events
You need to create a new endpoint that listens for events on your account instead of your Connect accounts
I just need to listen to the Connect events, since the payments I use go to my connected accounts, the paymentIntent uses the "on_behalf_of" field.
๐ stepping in
Even when using on_behalf_of the PaymentIntent and Charge take place on your platform
What Event type are you trying to listen for here?
I tell you the scenario, my platform is an App that allows hamburger restaurants (Connect Accounts) to receive payments from their customers, in the middle of the transaction they go commissions to other connected accounts. Then the customers make a payment, which must go directly to the connected account and the commission is then made with a transfer to another connected account. That is why I am listening for the event "charges.success".
When should I create an EP for my account and when for connects?
You really just want to pay attention to the Events on your platform here.
You would listen to the charge.succeeded on your platform as that is where the actual charge takes place
The funds will indeed be Transferred related to that Charge if you are using transfer_data.destination
https://stripe.com/docs/connect/destination-charges is the flow you are describing
You could thereafter create a different Transfer for the commission
Oka, thanks