#tom_best-practices
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/1476561060654747689
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- tom_best-practices, 3 days ago, 4 messages
hi there!
I have already asked this a few days back but wasn't able to answer in time (other thread link: #dev-help message)
what do you mean by a "paused state" exactly? you want the Subscription to stop creating Invoices, or something else?
I thought about using a free product but I think that this would not solve my problem as a free product would just move from trialing to active state because no payment is required?
Our goal is to allow the customer to have a subscription to product A and then later on start a 7 day trial of product B. When the 7 days trial of Prod B have passed and the customer did not actively upgrade from this trial to a paid subscription (by a checkout we provide) we want the trial of B to be cancelled even though a valid payment method etc. for Subscription A exists. Is this possible? I have thought about just cancelling the subscription on the same time the trial ends when creating it?
yes that is possible, but will require some coding on your end:
when you detect that the free trial ended, and there was no upgrade, then update the subscription (either remove the product B, or pause the whole subscription, or do something else)
no problem with coding but the only way i am aware of would be to listen on the customer.subscription.updated and check if the status changed from trial to anything else. but that would be already too late?
I mean you know when the trial will end, so your code could run a couple minutes before that to update the subscription.
okay - and just setting the cancel_at date directly when the subscription is created would not work?
that also works! but then you need to make sure to unset cancel_at if the custom decides to upgrade their trial into a paid subscrition.
sure - and if the trial expired (and the subscription cancelled) i just need to create a new subscription on upgrade to paid, right?
because as far as i am aware a cancelled subscription cannot move to active
let me take a step back:
- user has a paid subscription with product A
- user start a trial with product B, on the same subscription
- trial for product B ends, while the user didn't upgrade
in this case why would you want to cancel and re-create a new subscription? just remove product B from the existing subscription, so the user can continue with product A. unless I missunderstood something?
oh i should have mentioned, that it is two different subscriptions and each subscription has one product (we need them to have different durations etc. and havent implement flexible mode yet)
got it. then yes cancel the second subscription, and keep the first one.