#! Ívan
1 messages · Page 1 of 1 (latest)
In your webhook handler code in production, can you print out the variable you're using for the signing secret? Don't share in here but verify that it's 100% the one from your dashboard
Print it out in the code and make sure that's the version of your code your prod server is running
Also never store secrets in your code
You should have them as environment variables
ohh i didnt know
And what error are you getting specifically?
i will test it
no, my problem is that i dont get any logs in my stripe webhook
Yeah that's sensitive data. It prevents you from accidentally pushing them in a github repo or something where they could be exposed
What does that mean?
Can you share a sample event id you expected to be delivered?
how can i do that?
Get one from your dashboard
Some event you expected to be delivered
You said events aren't being sent to the endpoint
I just need a sample event id
yes
Well have there been any account.updated events in the past 15 days since the endpoint was created?
If so they should have been sent
Doesn't look like there were
Thats the problem, im using this function, and it should active the webhook with the event "account.updated",
const accountLink = await stripe.accountLinks.create({
account: account_id,
refresh_url:
return_url:
type: "account_onboarding"
});
Well is that a connect webhook?
i dont know
Can you send me the webhook endpoint id?
Yep
That's a platform webhook endpoint not a connect endpoint
Please read: https://stripe.com/docs/connect/webhooks
so i need to run this function?
You can also create a webhook endpoint for Connect events and a separate webhook endpoint for your platform events via the Dashboard.
you need 2 endpoints minimum for a platform
Assuming you want both Connect events and Platform events
Yes, i want both, so a i have already a platform webhook, to create a connect webhook its the same thing and run that function?
If you create the endpoint and run that it will give you information about the webhook endpoint you just created, so if that's what you want to happen, then yes
no i just want to just to a Connect Webhook instead of platform
That contradicts what you just said. Do youwant only one or do you want both?
ok sorry, my english is very bad and i just started, but i want both but if i create another webhook it will be platform or no?
what should i do, i already have this one
You choose whether or not to make it connect or platform when you create it
Just make another one
im dumb its this ?
Yup
holy
That's currently the platform that's selected.
ye....