#0xl34n_webhooks

1 messages ยท Page 1 of 1 (latest)

limpid agateBOT
#

๐Ÿ‘‹ 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.

dire ginkgo
#

I show that event was sent only to your CLI. Have you created a separate Webhook Endpoint for the server you're running?

lone hedge
#

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??

dire ginkgo
#

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

lone hedge
#

I dont know how to desable Workbench

#

But my first webhooks it was created outside of workbench

dire ginkgo
lone hedge
#

I did just that a moment ago and nothing.

dire ginkgo
#

Did you trigger a new event to get sent to that endpoint?

lone hedge
#

Yes

#

This PaymentIntent: pi_3PBhzmLAwobXIPtp0rGFNAJF

dire ginkgo
#

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

lone hedge
#

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.

cursive gateBOT
sharp grail
#

๐Ÿ‘‹ 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?

lone hedge
#

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?

sharp grail
#

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

#

You could thereafter create a different Transfer for the commission

lone hedge
#

Oka, thanks