#sejo

1 messages · Page 1 of 1 (latest)

sand pumiceBOT
dusty shoal
#

Hi there!

#

Can you copy-paste the error here?

civic hedge
#

yes

dusty shoal
#

The error doesn't seem related to Stripe. Can you share your code here?

civic hedge
#

yes

#

this is

#

I discovered the error

dusty shoal
#

Sorry for the delay

#

What was the error?

civic hedge
#

had nothing to do with the webhook, sorry, if I get to have any punctual error I will be back thank you very much

#

I had another route with webhook so I threw that

dusty shoal
#

Got it! So is your issue resolved?

civic hedge
#

For now if, should start testing webhook sure q if I can not solve them I will return here, thanks for everything

obtuse compass
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

civic hedge
#

hi

#

How do I know if my webhook is working correctly

obtuse compass
#

do you mean in live mode? or do you want to test it locally?

civic hedge
#

test

#

for now

obtuse compass
#

you can use Stripe CLI

civic hedge
#

mm good looks half complicated ajajaj but I will try

#

once I try it with CLI and walk just should I upload it to the stripe panel?

obtuse compass
#

your webhook endpoint should be hosted by yourself

#

and you should create a webhook endpoint on your dashboard to point to that URL

civic hedge
#

ok , thanks

#

apparently window won't let me install it

obtuse compass
#

Stripe CLI?

civic hedge
#

ya

#

I download stripe_1.13.9_windows_x86_64.zip

#

gives me that message and closes

obtuse compass
#

that's good

#

now you need to open a new CMD window

civic hedge
#

ok

obtuse compass
#

and you can check if Stripe CLI is installed by running stripe --version

civic hedge
#

"stripe" is not recognized as an internal or external command,
Executable program or batch file

#

That's what I throw when I put that command

obtuse compass
#

ok in that case you can cd to ~/Downloads/stripe..../ and then run stripe.exe --version

civic hedge
#

ok

civic hedge
#

I think I'm going well.. if or if I have q press C to finish that? Is that key not canceled if I press out ?

static furnace
#

are you talking about the webhook signing key ?

#

when using the cli, its the same always

civic hedge
#

this is it ?

#

With this any payment they make will send me the information to my backend?

static furnace
#

if your backend is listening to the webhooks

static furnace
civic hedge
#

well I make a trial purchase and see if you receive it and I warn you

#

Make a payment but do not receive any notification either from the CLI or in the backend

static furnace
#

stripe listen is running in a sperate window ?

#

Can you make a screenshot of it ?

civic hedge
#

ok i understand now

static furnace
civic hedge
#

ok

#

With this you could know where the error is ?because this code is the one that gives me stripe

static furnace
#

this is a 404 error code, that mean the url doesn't exists

#

when you hit localhost:3001/webhooks in your browser are you getting a result ?

civic hedge
#

yes

static furnace
#

the endpoint doesn't exsist.

civic hedge
#

now

static furnace
#

you need to check your endpoint path

civic hedge
#

I found the error and the information arrives

#

/webhook in CLi was /webhooks

#

Now a silly question maybe... but it does not come with the time it is made the payment

static furnace
#

events are async not real time.

civic hedge
#

mmm well I'll see how to fix that, thanks. In this way you could already use it for real payments and production?

static furnace
#

Yeah of course

civic hedge
#

Thank you very much to you and your colleagues, they were of re help, sure they will see me back for any mistake

#

n

static furnace
#

Np! you're welcome!