#soumya_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/1509874397807251618
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- soumya_webhooks, 14 hours ago, 68 messages
Helloo
๐ Are you using connect ?
If so then you need to create a "Connect" webhook endpoint:
https://docs.stripe.com/connect/webhooks?accounts-namespace=v1#connect-webhooks
So that you receive all events that happens on your connected account
Can you explain your use case first
So it should automatically trigger for who install the app
I want know how to subscribe webhooks once so it should work for any merchant who installs the app
Can you share more details about this please ?
Actually we are building the public loyalty app
What Stripe Product are you using ?
Stripe Apps ?
can you share the guide you are following
We are building stripe apps
to better understand your integration
I'm follow how to build stripe apps for dashboard guide
As part of it we have took the patner account
Under it has the live sandbox and test mode
We have already created one public app using stripe apps create
In order to get notified about events happens on the merchant who installs your Stripe App you need to follow this guide:
https://docs.stripe.com/stripe-apps/events
You need to register the webhook endpoint in your Stripe dashboard:
https://docs.stripe.com/stripe-apps/events#private-events
Did you build a Stripe webhook endpoint or not yet ?
If I register the webhook in dashboard it will to that account this result I got from stripe chat
Not sure I understand your last message, can you clarify more ?
nice, now you need to register that webhook endpoint as connected endpoint
Here's how you can register the webhook endpoint:
https://docs.stripe.com/webhooks#webhooks-summary
(Make sure to select the connect option from the dashboard UI)
Why connect?
Stripe Apps is using Connect behind
When they connect to the our platform they need to set the webhooks
But for the api I have used type account is it correct way?
When they connect to the our platform they need to set the webhooks
You (the platform) want to receive your merchant's events, or your merchant want to get their event
The platform want to listen
Then you simply register your webhook endpoint in your platform Striep dashboard
Connect or your account?
Connect
No, you need create the endpoint only one time
This is a one time setup
and not for each installation you create a new endpoint
yes
Also can you guide me we want to use oauth authentication method when installing the app
How to test itt?
You have implemented this?
https://docs.stripe.com/stripe-apps/api-authentication/oauth
If so, here how you cna test it:
https://docs.stripe.com/stripe-apps/api-authentication/oauth#test-app
Cleint id client secret?
From your oauth provider
You said you implemented Oauth 2 right ?
From the docs what I know is we need too implement one end point which will exchange code with access token
We have implemented that end point
But don't know how to actually test the flow
Can you clearly guide me what I need to set up on my end?
The client Id can be found here:
https://dashboard.stripe.com/settings/connect/onboarding-options/oauth
hey there ๐ taking over as my colleague needs to step away - yes, that's correct
sorry I'm not sure I understand what you mean - do you mean while installing the app?
the process is described in this doc: https://docs.stripe.com/stripe-apps/api-authentication/oauth
is there a specific step/part that you're asking about?
you just need to create a button on your page that redirects to the OAuth link you get from your Stripe dashboard: https://docs.stripe.com/stripe-apps/api-authentication/oauth#create-install-link
then, once your app is published and the customer is redirected to your URL after completing the OAuth connection, your callback URL will contain an authorisation code that you need to pass to Stripe, exchanging it for an access token: https://docs.stripe.com/stripe-apps/api-authentication/oauth#obtain-access-token
you then use the access token to make requests to the Stripe API - example here: https://docs.stripe.com/stripe-apps/api-authentication/oauth#obtain-access-token:~:text=making a request to the Stripe API