Does anyone have any good STRIPE resources for Next.js App router?
Answered
Rhinelander posted this in #help-forum
Original message was deleted.
Answered by B33fb0n3
I like this guide: https://docs.stripe.com/payments/quickstart?client=next
But you can also build your own configuration. Keep in mind the basic behavior: somewhere, somewhen a paymentintent need to be created and somewhere, somewhen it need to be confirmed.
Confirming can be done serverside or clientside and that also via multiple possible options (you can choose one). One example for collecting client data can be confirmation tokens, another by just creating a payment method and save the id or you can confirm it clientside by using the elements provider (like you see in the linked doc), ...
Of course you can also add your webhooks to it and more. That's just a simple version on how to collect payments though stripe with a nextjs guide
But you can also build your own configuration. Keep in mind the basic behavior: somewhere, somewhen a paymentintent need to be created and somewhere, somewhen it need to be confirmed.
Confirming can be done serverside or clientside and that also via multiple possible options (you can choose one). One example for collecting client data can be confirmation tokens, another by just creating a payment method and save the id or you can confirm it clientside by using the elements provider (like you see in the linked doc), ...
Of course you can also add your webhooks to it and more. That's just a simple version on how to collect payments though stripe with a nextjs guide
10 Replies
Original message was deleted
I like this guide: https://docs.stripe.com/payments/quickstart?client=next
But you can also build your own configuration. Keep in mind the basic behavior: somewhere, somewhen a paymentintent need to be created and somewhere, somewhen it need to be confirmed.
Confirming can be done serverside or clientside and that also via multiple possible options (you can choose one). One example for collecting client data can be confirmation tokens, another by just creating a payment method and save the id or you can confirm it clientside by using the elements provider (like you see in the linked doc), ...
Of course you can also add your webhooks to it and more. That's just a simple version on how to collect payments though stripe with a nextjs guide
But you can also build your own configuration. Keep in mind the basic behavior: somewhere, somewhen a paymentintent need to be created and somewhere, somewhen it need to be confirmed.
Confirming can be done serverside or clientside and that also via multiple possible options (you can choose one). One example for collecting client data can be confirmation tokens, another by just creating a payment method and save the id or you can confirm it clientside by using the elements provider (like you see in the linked doc), ...
Of course you can also add your webhooks to it and more. That's just a simple version on how to collect payments though stripe with a nextjs guide
Answer
Rhinelander
Thank you I'll try to figgure it out. I already did something few hours ago but I want to do it the right way and I don't really know if I did it that way I mean it works but hope it's secure. Thats why I am looking for good guide. Thank you I read that docs before and I used them to make most of my solution
I am just really impresed no one has done guide on stripe for next.js (app router). Youtube is full of everything person would guess there would be shit ton of that content
But guess not
You can find many videos about nextjs and stripe when searching for something like "ecommerce full stack project stripe nextjs" or something similar to that. Happy to help 🙂
Rhinelander
Will do that!!! Thank you sir!
@Rhinelander Will do that!!! Thank you sir!
Please do not delete your original questions unless they contained secrets that you should have never posted in the first place. Deleting the question makes the answer out of context and only confuses readers.
Rhinelander
I though it just deleted the thing on help forum sidebar as I have many of this opened and its anoying to watch sorry about that didn't really read what this does when I was pressing.
Just Unfollow the post it will be removed from the sidebar