shvz
TTCTheo's Typesafe Cult
•Created by shvz on 8/26/2023 in #questions
Stripe how to handle multiple price_id?
this actually help! thank a lot Leisure!
6 replies
TTCTheo's Typesafe Cult
•Created by shvz on 8/28/2023 in #questions
mutateAsync()
here is what my payload looks like on the network tab
{"0":{"json":{"priceId":"price_1N4hQIAK9GVg5GfXAgoXNaol"}}}
no idea why it's nested like that
10 replies
TTCTheo's Typesafe Cult
•Created by shvz on 8/28/2023 in #questions
mutateAsync()
front end calling basic
my hook
my handleBuyCredits
but then my back received an plan: undefined
10 replies
TTCTheo's Typesafe Cult
•Created by shvz on 8/28/2023 in #questions
mutateAsync()
in my front, I'm passing 'basic', 'standard' or 'premium'
10 replies
TTCTheo's Typesafe Cult
•Created by shvz on 8/28/2023 in #questions
mutateAsync()
I'm having hard time passing the price_id I endup having an object within an object for some reason, I have now stear away from trying to pass hardcoded price_id and use my .env
now my backend return an undefined plan while my price ID is set in my .env using NEXT_PUBLIC and should pass properly to my back
10 replies