#! Ívan

1 messages · Page 1 of 1 (latest)

dusky kettleBOT
subtle osprey
#

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

honest gorge
#

its the same, i dont know whats wrong, its my first time using it

subtle osprey
#

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

honest gorge
#

ohh i didnt know

subtle osprey
#

And what error are you getting specifically?

honest gorge
#

i will test it

honest gorge
subtle osprey
# honest gorge ohh i didnt know

Yeah that's sensitive data. It prevents you from accidentally pushing them in a github repo or something where they could be exposed

subtle osprey
honest gorge
#

its not triggering the webhook

#

i guess

subtle osprey
#

Can you share a sample event id you expected to be delivered?

honest gorge
#

how can i do that?

subtle osprey
#

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

honest gorge
subtle osprey
#

You're only listening to account.updated events

#

Is that intentional?

honest gorge
#

yes

subtle osprey
#

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

honest gorge
#

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"
});

subtle osprey
#

Well is that a connect webhook?

honest gorge
#

i dont know

subtle osprey
#

Can you send me the webhook endpoint id?

honest gorge
#

we_1O5aL7KPhhZi6zQeYxtmRbXB

#

this?

subtle osprey
#

Yep

#

That's a platform webhook endpoint not a connect endpoint

dusky kettleBOT
honest gorge
#

so i need to run this function?

feral tapir
#

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

honest gorge
#

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?

feral tapir
#

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

honest gorge
#

no i just want to just to a Connect Webhook instead of platform

feral tapir
#

That contradicts what you just said. Do youwant only one or do you want both?

honest gorge
#

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

feral tapir
#

You choose whether or not to make it connect or platform when you create it

#

Just make another one

honest gorge
#

im dumb its this ?

feral tapir
#

Yup

honest gorge
#

holy

feral tapir
#

That's currently the platform that's selected.

honest gorge
#

ye....