Hackathon One Part 6 (Last Part): Integrate Stripe Webhooks in Next.js 13.4

preview_player
Показать описание

You will learn how to:

Verify the webhook signature to ensure the event is coming from Stripe and not from a malicious source.
Handle webhook events and perform actions such as updating your database.
Test your webhook endpoint using the Stripe CLI or the Stripe dashboard.

I hope you find this video helpful and informative. If you do, please give it a thumbs up and subscribe to my channel for more videos on web development. Thank you for watching and happy coding!

Рекомендации по теме
Комментарии
Автор

Please help Question:
I am on .net environment in which i have 1 api app, 1 webstore app, and 1 admin app..admin and webstore app consumes same api .

Now i am moving to nextjs for webstore app which will consume the older .net api.

So i kept some pages are are entirely server component, no client component used .

And some pages in which client component are used.

I have written one agentlayer in which some function are there which will be consumed from both client component and server component.
App works fine.

Now the problem is i have kept some ids in cookies. that i want to access in the functions i mentioned above in the agentlayer file.

But when i use next/headers and normal js-cookies on the same file...by putting condition to use like isServer= typeof window === "undefined"
The app fails at build, says server thing has been used in a page whose parent is a client some where.

Is there any solution? So that i can use some function for both client and server component in which cookie can be used

alisonbensam