#niroda - webhooks
1 messages · Page 1 of 1 (latest)
hey there, taking a look
Are you creating checkout sessions on connected account, or your own account?
Hey, I tried both, neither work. But I want it to work on connected account
can you share an example event from your dashboard that you didnt receive?
so i can take a look where it was sent and what happened
That's another problem. I think (if I'm looking at the correct section) there is only:
200 OK POST /v1/checkout/sessions
can you share any session or requst example id so i can pull up the account logs?
eg req_123
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
req_xw8y5OMATsS72W
Thanks!
ok so this is a destination charge: https://dashboard.stripe.com/test/logs/req_xw8y5OMATsS72W
and the events would go to your own account endpoint
(and least the checkout session events)
and you only have a connect endpoint configured
you need to set up an endpoint for your own account (not connect) to receive these events
May I ask please, maybe I did it incorrectly. What I would like to do is to help others with this integration. They connect their account and I handle the proccess of creating a session and handling subscriptions etc. And I would like to take a fee on each transaction. Is my session creation correct for such scenario?
And how to setup an endpoint for my own account? there is only one webhook under developer section
there should be two sections in your dashboard webhooks view, one for your own account events and one for connect events:
see here for context
Here it is, only one webhook
ah yes, the UI there changed
so see where it says type=connect?
you need one that is not connect
and depending on what youre doing you might not need the connect one
but for now create another endpoint, and do not set it to "listen to connected accounts"
Ok I will give it a try. Thanks a lot!
NP!
I'm catching up here @untold jolt give me a min
here ..
Sure, thx!
🤔
Ok
what is your intended fund flow?
Destination Charges? Or Direct Charges?
Well, that's the original question. I don't know which to use
well start here https://stripe.com/docs/connect/charges
that will help you pick which one works for your use case
Thanks! well it sounds like direct charges what is best for my use case. But is there a way to select subscription mode in direct charge?
yes
you create the Subscription on a Connect acct using https://stripe.com/docs/connect/authentication the Stripe-Account header