#storm-guardian_api
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/1405519850738159626
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
-
Why do you need
next_actionspecifically? Do you not just pass the intentclient_secretto the confirm fn? -
Not really possible without a trial, other than using a 'free' plan for 1 month then transitioning to the paid plan for the remaining 11 via a schedule
Not really possible without a trial, other than using a 'free' plan for 1 month then transitioning to the paid plan for the remaining 11 via a schedule
Yes, I figured it would require a manual update at the end of the trial.
Well it doesn't need a manual update if you actually use trial_period_days
It'd just transition automatically into a paid period
Why do you need next_action specifically? Do you not just pass the intent client_secret to the confirm fn?
It would be as difficult to get the client secret no ?
Maybe I'm doing things the wrong way, but I figured I would get the redirect_to property back to the frontend once the subscription has been created to follow up with the 3DS validation.
No, you can use confirmation_secret for Payment Intents: https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices#use-confirmation_secret-for-payment-element-integrations
expand: ['latest_invoice.confirmation_secret', 'pending_setup_intent']
should over both scenarios (free and paid invoices)
Then depending on presence of one you conditionally call confirmSetup/confirmPayment
Oki !
I'll take a deeper look into subscription_schedules, the AI assistant didn't point me toward this.
Thanks for the advice.
But you're saying that it would be possible to have :
- no billing at the subscription
- billing at the end of the month for a full year
- 11 months later -> billing for the next year
- 12 months later -> billing for the next year
hi! I'm taking over this thread.
no billing at the subscription
can you calrify what you mean by this? a free trial?
more of a withdrawal period.
the month will be paid by the first billing
but I let him try the product for 1 month before taking the money for the year
got it. then yes what you described can be done with a subscription schedule. It would have 3-4 phases.
Ok I'll take a look
I should add that, some features will require the user to give up on this withdrawal period.
For exemple if he uses feature A, a pop up asks him to accept the fact that the 'trial' will end right away. If he accepts, the he should be billed immediately (but the cycle anchor should not change).
I guess that means I'll have to dynamically update the schedule.
yes, something like that.
I recommend doing tests in test mode to see how exactly this would work. you can also use Test Clocks for this: https://docs.stripe.com/billing/testing/test-clocks
By the way, about that :
There was latest_invoice.payment_intent but it has been removed.
I left a feedback, the AI agent provides answer that are based on the previous API version.
TestClocks ! Amazing ๐
I was indeed a bit confused regarding how I would test this.
Thanks a lot for the help !
happy to help ๐
FYI