Thanks for the step-by-step guide! I feel more confident implementing the hooks I need to finally integrate Stripe payments.
@warlock2573 жыл бұрын
This was a big help. Showed what a raw buffer log looks like, so I could debug. Thanks.
@developerfilip3 жыл бұрын
bodyParser is now deprecated! Stripe - you should know better!
@nicolasgomez52073 жыл бұрын
stripe is awesome on the surface, then sucks in the inside once u read the docs
@mscholzdev Жыл бұрын
just import it like in the video, but do not install body-parser, it will take the body-parser from express.
@NavyCuda11 ай бұрын
Absolutely fantastic, thank you! Subscribed!
@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 Жыл бұрын
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 Жыл бұрын
The webhook secret works on local machine but when I add the endpoint it does not work.
@canklc57722 жыл бұрын
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?
@canklc57722 жыл бұрын
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
@StripeDev2 жыл бұрын
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.
@canklc57722 жыл бұрын
@@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.
@StripeDev2 жыл бұрын
Great news! Happy we could help.
@jasooanimations39622 жыл бұрын
I keep getting this error: Webhook Error: Unable to extract timestamp and signatures from header. Any ideas on how to fix that?
@StripeDev2 жыл бұрын
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.
@felixndifon85113 жыл бұрын
can African countries use stripe?
@reprovedcandy2 жыл бұрын
Getting a 400 everytime. Why is my endpoint secret not working? I followed every instruction exactly...
@StripeDev2 жыл бұрын
Hey there-are you getting any other errors along with the 400?
@reprovedcandy2 жыл бұрын
@@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.
@StripeDev2 жыл бұрын
Great to hear you got it figured out!
@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
@fxstreamer2382 жыл бұрын
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
@AAquaticAApe3 жыл бұрын
42nd like and first comment!! Must be my lucky day!... Great video!
@sahaneakanayaka33942 жыл бұрын
Man this helped a lot thank you really, struggled lot with that signature payload really by parsing it 🥲🥲