#cberube
1 messages · Page 1 of 1 (latest)
The key should start with whsec_
"url": "www.ipsofactointeractif.ca/webhook"
Fix the key already. It was hard to find.
Awesome, so is this working for you now?
The web hook is: https://www.ipsofactointeractif.ca/webhook.
But the url doesn't contain the required scheme.
Still bad request
Will resend work. Or, do I need to crate a new customer?
resending shoudl work
"message": "Invalid URL: An explicit scheme (such as https) must be provided.",
Where am I supposed to declare it?
Where exactly are you getting that error?
Webhook logs
I just recreated another webhook for testing.
Can you send me the ID for the event that got this error?
Yes: evt_1OmIseJ36fJ52FffV0EXjCJV
API version is wrong. How can I upgrade it to 2023-10-16.
2023-10-16
Latest
2020-08-27
Default
Hello! I'm taking over and catching up...
If you create your Webhook Endpoint via the API you can specify the API version: https://docs.stripe.com/api/webhook_endpoints/create#create_webhook_endpoint-api_version
I will upgrade the api first since have dons it in the client already.
Bad request we_1OmIqsJ36fJ52FffulK6m04a
What do you mean by "bad request"? Can you provide more details?
Customer creation works but the webhook Webhook signature verification fails. Just updated with new code example.
Signature verification typically fails if you're using the wrong webhook secret or if you're not passing the raw, unaltered, unparsed body to the Event creation function.
I did an update similar to whats was suggested
.post('/webhook', bodyParser.raw({type: 'application/json'}), (req: CustomRequest, res: Response) => {
Data is there... but still failing.
You're 100% certain you're using the correct secret? Each Webhook Endpoint has a different one.
The secret I have from the cli is different from the one in the UI.
Yep, they're all different.
Which one do i use.