#rob_webhooks

1 messages ¡ Page 1 of 1 (latest)

rose girderBOT
#

👋 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/1319107864580587560

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

analog seal
#

hi alex, any advice would be greatly appreciated

jaunty steppe
#

hello! do you have the Checkout Session id which you're expecting to see the event from? Can you share that, it'll have the prefix cs_test_

analog seal
#

sure.. One sec

#

"cs_test_a1ERuvl70TLZgdspMNq3rwiS7rnqaddmnG3lXCDr8FS8R483QDYBoZs8e0"

#

thanks for this

#

so, if I look in the events it shows as checkout.session.completed however it does not trigger the webhook set to listen for that same event.

jaunty steppe
#

you need to setup an Account webhook endpoint for the type of charge you're using i.e. destination charges. Not a Connect webhook endpoint.

analog seal
#

ahh I see.. But it will still work for connected accounts though right?

jaunty steppe
#

there's some confusion here - in short, Account webhook listens for events that occur on your own account. For destination charges, the Checkout Session exists on your account, not on the connected account.

analog seal
#

Basically I want the charge/fee to go from end user to connected service provider and I will take a commision en route..

analog seal
jaunty steppe
#

hmmm

#

Basically I want the charge/fee to go from end user to connected service provider and I will take a commision en route.

who will be the merchant on the customer's bank statement? You / the connected account?

analog seal
#

Me (My business)

#

Ideally

#

Imagine something similar to Just Eat (as an example)

jaunty steppe
#

are you using Custom / Express / Standard accounts?

analog seal
#

express

jaunty steppe
analog seal
#

perfect, thanks mate