#tudor_ang

1 messages · Page 1 of 1 (latest)

tawny geodeBOT
#

Hello! We'll be with you shortly. 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.

past portal
#

hello

split robin
#

Hello! What's up?

past portal
#

i want to make stripe listen to my webhooks from production

#

here is how i set it to local host

#

how i can do this for production

#

i want to send the req to my domain production

#

endpoint

split robin
#

The stripe listen command is only designed for local testing. For production you should set up a Webhook Endpoint in your Dashboard.

past portal
#

where i can do this

split robin
past portal
#

can i have a link please

#

i am not sure what to select at listen to

#

i have my backend on a server

split robin
#

Those are the Event types you want to listen for. For example, if you wanted to listen to checkout.session.completed you would specify that Event type there.

past portal
#

above

#

at listen to

split robin
#

Yes.

past portal
#

events on your acc or connected accounts

split robin
#

Oh, that. Are you using Connect?

past portal
#

yeah i have const stripe = require('stripe')('sk_test_51NgtdrFi8oKxxxxxxxxxxx);

#

if this is the connect

split robin
#

Like where are the Events you want to listen for happening? Are they on your own Stripe account or are they on Stripe accounts connected to your Stripe account?

#

No, that's not what I mean.

past portal
#

hmm

#

what you mean

#

are on a store

#

from my account

split robin
past portal
#

no

split robin
#

Okay, then you only care about Events on your own account.

#

Because you don't have any connected accounts.

past portal
#

oh yeah

#

and after i have the webhook in stripe

#

i still have smth to do?

split robin
#

Nope.

past portal
#

or will redirect automaticaly

#

let me test

split robin
#

Once you have the Webhook Endpoint set up in the Dashboard, Events will be sent to the URL you configured there.

#

There is no redirect involved, the Events are delivered straight from Stripe's server to your server.

past portal
#

i have to update the endpoint secret or smth?

split robin
#

Yes, the secret is available in the Dashboard, and is different than the one that stripe listen generates.

past portal
#

this is my test one
// This is your Stripe CLI webhook secret for testing your endpoint locally.
const endpointSecret = "whsec_cc81d147cf5ebcbd498fc8da79629f139c2d816fb1

#

can you give me a link where i have it from the prod one

#

?

#

starts with we_ ?

split robin
#

You shouldn't share that here, this is a public server.

#

You should generate a new secret since you shared that one here.

past portal
#

that was the one for test

#

is ok

split robin
#

Ah, okay.

past portal
#

i cant find the one for the webhook

#

starts with we_ ?

split robin
#

Click on the one you created, then find where it says Signing secret and then click Reveal.

past portal
#

found it

#

going to test

#

thanks

#

works