#cgy-webhook
1 messages · Page 1 of 1 (latest)
The send test webhook button is deprecated. You would want to send via Stripe CLI
Ok, I will have a try
I test Stripe CLI online. It can't edit webhook url right? I must install a Stripe CLI?
$ stripe trigger payment_intent.succeeded
I use this one
Yeah that's to send a test event
so how can I change this url to our's.
Onlie Stripe CLI seems inavailable to edit url
unable
forgive my poor english
Let's use local Stripe CLI
ok
Invalid API Key provided: sk_test_***
I find the secret key from my dashboard
invaild?
it's sk_test_xxx
yes it is. Let me capture this command
Don't put your key here
You should take your key from your Dashboard https://dashboard.stripe.com/test/apikeys
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
ok
I finally trigger to my webhook
But when I test 'https' dashboard response shows 'err', then I update to 'http' shows '400 err'
I chekou my code. I return 400 when I didn't take any furthur action in our system
And Stripe says '400 err' will delivery 1 hour later
So first 'https' is wrong, right? And I can't return 400?
But I did this code four months ago. I remeberd 400 is OK
I would suggest taking a step back and review your webhook handler
It should run using https yes, and it's your own server. Stripe sent event to it and expect to receive 200
You would want to develop a normal server that can response 200 to any request first, then can response 200 to request from Stripe
Ok
I got what you said. There's two mistakes
Fisrt https should reachable, then 200 is required
Yeah. It's just an ordinary server response to requests