Webhook helpers in stripe-node

  Рет қаралды 15,683

Stripe Developers

Stripe Developers

Күн бұрын

Пікірлер: 26
@JR-lo2ei
@JR-lo2ei 2 жыл бұрын
Thanks for the step-by-step guide! I feel more confident implementing the hooks I need to finally integrate Stripe payments.
@warlock257
@warlock257 3 жыл бұрын
This was a big help. Showed what a raw buffer log looks like, so I could debug. Thanks.
@developerfilip
@developerfilip 3 жыл бұрын
bodyParser is now deprecated! Stripe - you should know better!
@nicolasgomez5207
@nicolasgomez5207 3 жыл бұрын
stripe is awesome on the surface, then sucks in the inside once u read the docs
@mscholzdev
@mscholzdev Жыл бұрын
just import it like in the video, but do not install body-parser, it will take the body-parser from express.
@NavyCuda
@NavyCuda 11 ай бұрын
Absolutely fantastic, thank you! Subscribed!
@ofelyahakobyan2344
@ofelyahakobyan2344 Жыл бұрын
From cli everything works as expected. But, how can we trigger event from frontend react app. When I make request to my webhook endpoint, the request body is empty, so I can't get event object and signature.
@StripeDev
@StripeDev Жыл бұрын
If you're trying to send events to your webhook endpoint yourself instead of Stripe sending them, you should make requests to Stripe that then generate the events that Stripe sends to their webhook endpoint. If this is for testing purposes, you should look at the Stripe CLI events and "mock" them in your code and send those to their webhook endpoint. If we haven't provided an adequate solution here, please send us a message at heretohelp@stripe.com explaining what you're trying to do in more detail and send us an event id so we can investigate. Thank you!
@MahmudTowhid
@MahmudTowhid Жыл бұрын
The webhook secret works on local machine but when I add the endpoint it does not work.
@canklc5772
@canklc5772 2 жыл бұрын
Hello Stripe users/learners. I have a question. I have successfully tested checkout operations and webhook, listening to my port. However, when I log in with different user accounts, I still get the same user info in the response object from webhook event. Plus, I havent created customers. I want to use this response object from the webhook. to store transaction details in Mongodb. Can anyone offer me a road map?
@canklc5772
@canklc5772 2 жыл бұрын
Unable to extract timestamp and signatures from header: I am getting this error. Anyone can help? I applied the same code as in the video
@StripeDev
@StripeDev 2 жыл бұрын
Hi there. Can you please confirm if you are checking for the signature in HTTP_STRIPE_SIGNATURE header? The correct header name to look is stripe-signature.
@canklc5772
@canklc5772 2 жыл бұрын
@@StripeDev Yes Sir... I figured it out. "app.use(express.json());" This line was causing the problem. Now it works. Thanks for your support and the amazing tutorial.
@StripeDev
@StripeDev 2 жыл бұрын
Great news! Happy we could help.
@jasooanimations3962
@jasooanimations3962 2 жыл бұрын
I keep getting this error: Webhook Error: Unable to extract timestamp and signatures from header. Any ideas on how to fix that?
@StripeDev
@StripeDev 2 жыл бұрын
Hey there-this error means that your code is not properly accessing this information. We'd recommend checking out this documentation to help solve this: stripe.com/docs/webhooks/signatures#verify-official-libraries.
@felixndifon8511
@felixndifon8511 3 жыл бұрын
can African countries use stripe?
@reprovedcandy
@reprovedcandy 2 жыл бұрын
Getting a 400 everytime. Why is my endpoint secret not working? I followed every instruction exactly...
@StripeDev
@StripeDev 2 жыл бұрын
Hey there-are you getting any other errors along with the 400?
@reprovedcandy
@reprovedcandy 2 жыл бұрын
@@StripeDev Hey Stripe, thanks for the quick response. Fortunately, I figured out the issue and have resolved it. It was that the app.use json parser was above /webhook and was messing up the raw body contents.
@StripeDev
@StripeDev 2 жыл бұрын
Great to hear you got it figured out!
@mampakha185
@mampakha185 Жыл бұрын
No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? receiving this error on stripe trigger customer.created
@fxstreamer238
@fxstreamer238 2 жыл бұрын
what happened to respond quickly after signature verification with 2xx before doing stuff with events ? I guess you have no clue. next time do whats necessary
@AAquaticAApe
@AAquaticAApe 3 жыл бұрын
42nd like and first comment!! Must be my lucky day!... Great video!
@sahaneakanayaka3394
@sahaneakanayaka3394 2 жыл бұрын
Man this helped a lot thank you really, struggled lot with that signature payload really by parsing it 🥲🥲
Webhook helpers in stripe-php
18:57
Stripe Developers
Рет қаралды 10 М.
Stripe Webhooks - The Ultimate Guide
29:04
Brett Westwood - Software Engineer
Рет қаралды 12 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Making requests with stripe-node
32:06
Stripe Developers
Рет қаралды 9 М.
How I implement a credit systems using stripe
9:20
Web Dev Cody
Рет қаралды 16 М.
How To Accept Payments With Stripe
23:05
Web Dev Simplified
Рет қаралды 285 М.
Node.js: The Documentary | An origin story
1:02:49
Honeypot
Рет қаралды 680 М.
Handling signed Stripe Webhooks with Edge Functions
19:00
Supabase
Рет қаралды 11 М.
React Stripe.js and the Payment Element
15:18
Stripe Developers
Рет қаралды 88 М.
How To Use TypeScript With Express & Node
17:05
Colt Steele
Рет қаралды 75 М.
Node.js Express Starter
36:06
Stripe Developers
Рет қаралды 21 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 662 М.
Stripe Webhooks Tutorial
7:44
WittCode
Рет қаралды 3 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН