#rohith_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/1376800662528065566
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! What do you mean by enter user amount ? Also can you give an example subscription ID (starts with sub_) or request ID (starts with req) where your proration is not working?
Hi Sam
sub_1RT3czPq0Tpc8aFd0xXFagLg
this is my susbscription id
can you please check once, you will get idea what i'm trying to achieve
Thanks for waiting! I checked the subscription and I see you created an annual subscription of EUR 500. Then you create a few invoice items (+ve and -ve) for EUR 500 as well. Can you explain the context a little more so I can see what is the issue? Thanks!
yeah sam
i want to migrate an existing user into stripe who has already taken our plan before stripe
now i created a trial subscription with back date and associated that price, now i want this to work like all subscriptions where user can upgrade and prorations will be applied accordingly, how ever no payment is recorded in stripe for that i have added an invoice item with -ve amount checking stripe documentation
now when i click upgrade it is just deducting amount from new package price , with out applying proration
i want proration to be applied
Which Stripe documentation did you refer to?
Apologies for the delay. I have a few concurrent chats open. Thsi si what I have understood:
- You are migrating subscriptions to Stripe
- These subscriptions have been paid for outside Stripe.
- You are creating new subscriptions with a
backdate_start_datefor the original start date and atrial_enddate for when the subscription is supposed to end. - You are adding a -ve amount to show the subscription has been paid for.
- Then when the customer upgrades or downgrades, you want a proration of the original amount.
Is above accurate?
Yes perfect
Give me a moment. Thanks!
Sure...
Thanks for waiting! It doesn't seem like there is a way to prorate a charge that is not created on Stripe. If you are migrating your subscriptions and are allowing your customers to upgrade or downgrade, you may need to do some manual calculations for the proration.
since we are already able to add like invoice item , and it is deducting that amount, why cant we do proration?
What do you mean it is deducting the amount?
deducting as such here i mean reduce added amount from the upgrading package
At least can you please let us know how we can upgrade the subscription with a specific amount which we will caluclate and not update if payment fails
HI @mystic knot I am Madhu, Rohith colleague,
We are gng to Integrate Stripe, for subscription management and we already have some existing customers who are already using our subscriptions.
We are trying to handle upgrade from subscription to another, here there is no issue when we upgrade for new customer as they do payment from the beginning and Stripe gives pro-rated based and we are able to make this transaction for upgrade .
But for old customer we tried adding trial license and added a negative transaction trying to get upgrade. - DO you think this is preferred way or do you have any better suggestions here ?
As Rohith mentioned, we can create an invoice with custom prorated calculation, But we are not able to make this as a transaction for upgrade.
Hey! Taking over for my colleague. Let me catch up.
But for old customer we tried adding trial license and added a negative transaction trying to get upgrade. - DO you think this is preferred way or do you have any better suggestions here ?
Yeah this could be an option, sure.
but we want to upgrade with prorations
for that we are adding an invoice item with -ve amount which tells about the payment that was associated when user was onboarded
now if user choses to upgrade , New Price - Invoice amount added is happening
but as the time progresses there should proration which is not applied
but we want to upgrade with prorations
Then why you simply don't upgrade your Susbcription with proration
In order to better understand your use case, could you please create a test Susbcription using test clock:
https://docs.stripe.com/billing/testing/test-clocks
That illustrate an existing Subscription that you have
and share with us what you want to do exactly to it ?
sub_1RT3czPq0Tpc8aFd0xXFagLg
You are migrating subscriptions to Stripe,
These subscriptions have been paid for outside Stripe.,
You are creating new subscriptions with a backdate_start_date for the original start date and a trial_end date for when the subscription is supposed to end.,
You are adding a -ve amount to show the subscription has been paid for.,
Then when the customer upgrades or downgrades, you want a proration of the original amount. to be handled in upgrade
Hi, taking over as my teammate needs to step away. Let me catch up.