#hussamkhatib

1 messages · Page 1 of 1 (latest)

mossy parrotBOT
#

Hello! We'll be with you shortly. 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.

cerulean bane
#

Hi 👋 threads here aren't meant to be long running, they're meant for quick synchronouse discussions. If we don't receive a response, we close the thread. If you want a longer running engagement where you have more time to respond, I would recommend reaching out to our Support team to open a case instead:
https://support.stripe.com/?contact=true

What is the issue that you're looking for assistance with?

neon copper
#

@cerulean bane Can you click on "dev-help' at the top message. I have mentioned the issue with all details there

cerulean bane
#

Yes, but only this time. Typically the server is too busy for us to go back and review past messages, and it's usually faster if you can provide us a summary of where you currently stand/what you're trying to accomplish. That's a big part of why we close threads, because maintaining context on all threads is already a lot to handle.

#

Pasting the message here so I don't have to keep scrolling back for it:

Hi Everyone,
I'm trying to implement subscription based method for payements.
We have 2 items in the subscription.
1st -> Subscription fee ($100)
2nd -> Credits ($50)

How can I handle poration such that it applied only for the subscription fee, as the Credits once granted gets rolled over to the next month.

More context:
We are trying to implement seat based pricing, If a team admin adds a member at the end of the month, we would charge them >$10 for credits worth $50.

Solutions I looked for:
setting proration enum value to each item.
custom callback for deciding the porarated value
However both of them were not possible

Documentations referred
https://stripe.com/docs/api/subscriptions/create
https://stripe.com/docs/billing/subscriptions/prorations

cerulean bane
#

That's not possible, our system doesn't allow you to only prorate some items in a Subscription. If you want to accomplish that kind of proration behavior, you will want to disable the proration logic provided by Stripe and build your own. You'll likely want to create Invoice Items to include your custom proration calculations on the next Invoice for the Subscription.

neon copper
#

Are you sure, I can do that ?
I was told that it's not possible

cerulean bane
#

Huh? I'm agreeing with them that you can't control prorations on a per-item basis.

You are updating the Subscription, I'm not aware of any limitations that would prevent you from adding an additional item to represent your proration calculations when you do so.