#cjf_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1225139528122241094
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐๐ฟ
Hello! Are you hitting an error when you make the checkout session creation request? Do you have a request ID or a checkout session ID I can take a closer look at?
I do not get an error, the discount code just doesn't take effect
I'm using the Firebase/Stripe plugin
i post this data:
but in the logs (req_ozOxeQN2bKk3bU) I don't see that discounts key
maybe a bug with the firebase integration?>
Yeah my guess is that you're not running the code you think you are (maybe you've changed the wrong file or haven't fully deployed your changes) since it's not coming through in the request params
so this should work if it was actually being sent @zinc bone ?
This is what's being written to Firestore, it seems the official firebase/stripe plugin doesn't actually support discount codes, is that right?
Is there any other way I can add a 30d free trial?
Not quite - you'd want the promo_123 ID and not FREETRIAL. But other then that it should work
ic
We don't own the firebase plugin so that'd be somethign you'd have to check with the plugin owners about
It says it's official, not true?
is there another way to add a 30d free trial to my products and bypass this mess? @zinc bone
That's out of date - the plugin was transferred to another owner a while back (see https://github.com/invertase/stripe-firebase-extensions/issues/524#issuecomment-1671603107). You'll likely want to check with those folks to know what the recommended path is
ugh, yeah looks like it isn't supported, so no way to bypass?
It looks like with the invertase-made extension there are ways to configure a trial (https://github.com/invertase/stripe-firebase-extensions/issues/609) - you need to create the price in a specific way