Creating (guest)checkout sessions with TRPC/Stripe/Zustand.
Hi! Just asking to see if this is a correct approach
I am managing carts using Zustand since it is just a simple side feature of the website where they sell some merchandising. Since customers can order as a guest, I am creating a public createCheckout link function in my stripeRouter. If users have a account I will link the order to the user.
And then my checkoutButton creates the checkoutUrl:
Is this fine?
0 Replies