#pooja_api
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/1308963688253751366
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
For Authentication custom application needs it's own Secrete key to be sent while making an API call
Do you mean a Stripe account secret key here? Which Stripe Account secret key you will be sending?
It sounds insecure. Secret Key should never be shared via network
To access the API of any application we need to first authenticate it. So the endpoint which I am accessing through stripe needs a basic authentication, so where can I put authentication details oin stripe to access the external webshook
Looks like you will have your application as a Connected Account, and you are the Platform account?
And you want them to listen to their own webhook and call Stripe API on their own?
I don't want to call stripe api but the external webhook endoint
I see. And which type of Connected Account are your applications?
I don't think it is a connected account
Does it have to be aconnected account for api calls?
It should be Connected Account, and hold relation to your Stripe Account. But in either way, it's not recommended to send SecretKey over network. They would need to go their own Stripe Dashboard and grab the secret key there
ok so you mean external application will need to get the stripe secrete key if stripe makes an api call to external application?
I am not certain about the part Stripe makes an API call. Which API call we made here?
(Or how do you setup that we will make API call?)
I have added the Webhook endpoints in the Event Destinations on the dashboard
But that's for your own Stripe account...
It will make Stripe send webhook event to your own webhook endpoint, belongs to your Stripe Account
How do I access external api from stripe then?
What do you mean by external api?
api or webhook eg. https://www.example.com/api/v2/createclient so if you send a api request and data to this webhook it will create a new client in example.com database
Yes but how does it relate to Stripe webhook?
should above api need to be added in webhookendpoint onstripe dashboard?
If no, pls guide how can
If no, pls guide on how can I send an api request and data to to above example.com/api... through stripe
are you there?
Yes, sorry in a MTG, will be back
You can set any URL (including example.com, or any URL that you own) to a Stripe webhook endpoint. We will send events related to your Stripe account, to that endpoint. But you need to own that endpoint, meaning you will own a server responsible to handling requests to it
yes we own that api
I get the authentication failed error in our webhook endpoint log file when try to access the endpoint from stripe
Does your endpoint have your account's secret key? (And your endpoint is not example.com, correct?)
yes have a secrete key and endpoint is not example.com
So you have the secret key on your endpoint server, use it to call Stripe API but it errored?
why call stripe api? I have secrete key on my endpoint, I just want to send a request to my endpoint when stripe event occurs, eg. create a client in example.com when there is a new payment/clicnet made in stripe
There are 2 secret value here: the endpoint secret and the Stripe Secret key. Technically your endpoint only needs the endpoint secret to receive the events
But if you want to fire Stripe API to retrieve more information based on the event, your endpoint will need the Stripe secret key, in additional
yes that's right, so where should I add my endpoint's secrete key while making a api request from stripe. On dashboard there is only stripe secrete key which I can;t change
By "making a api request from stripe", I suppose you mean "receiving a webhook event from Stripe"
Then that's the endpoint secret, you get it from your Stripe Dashboard, then set it into your endpoint code
The endpoint_secret in format whsec_xxx here https://docs.stripe.com/webhooks#verify-webhook-signatures-with-official-libraries
ok, My endpoint already have a secrete key, is there a way I can use that secrete key?