#florian_subscription-invoice

1 messages ยท Page 1 of 1 (latest)

keen pantherBOT
#

๐Ÿ‘‹ 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/1275469465173364840

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

livid sirenBOT
#

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.

fading marten
livid sirenBOT
quiet minnow
#

Hi there ๐Ÿ‘‹ I don't think there's anything wrong, I believe that's expected to not be supported.

fading marten
#

Understood, so maybe I need to rethink my approach for a new time ๐Ÿ˜ซ

#

The idea was to edit the description for each invoice, and the amount, but it seems the only way is to apply a discount here (and it will appear on the invoice as discount 100%)

quiet minnow
#

I don't think I have enough context from your previous thread to really parse what you're saying, but updating this Invoice is going to be pretty limited since it was generated from a Subscription and inherits a lot of its details.

fading marten
#

Understood, I think that over the course of the discussions, Stripe is not necessarily suitable for complex pricing (due to limitations).

quiet minnow
#

Oh wait, I remember a bit about this now. Agreed, your pricing model is quite complex and doesn't seem to fit into any of our models well.

fading marten
#

Yes we speak few days ago about this ๐Ÿ˜‰

After a lot of researchs, I think the best way to achieve this is:

  • I create two product on my dashboard (one for the 3%, one for the minimun price 0.25 โ‚ฌ / TiB)

  • my customer click on button "Subscribe", will redirect to checkout session in setup mode (collect billing address and credit card)

  • my backend will listen checkout.session.completed to create a subscription for this customer. Add the two product with 0 quantity (so amount will be 0)

  • use subscription only for invoice schedulling

  • on invoice.created event, i will add one line per day with a good description "You consume X transaction (total price = X, total size = 2 TiB). Price applied = X โ‚ฌ"

  • the price applied is fetch from invoice data based on subscription product

  • the two lines of subscription product will be on the invoice but at 0โ‚ฌ charge (I think it's not a problem)

using this, I can also apply exception for customer to apply another price (for example 0% and 0.10 / TiB, only for specific customer)

quiet minnow
#

๐Ÿ‘ seems reasonable if you don't think the appearance of the $0 lines on the invoice will be confusing for your customers. I still think it'd be cleaner to not try to cram this into a Subscription since it doesn't fit our pricing models well, but can see how hooking on the status of those can be beneficial.

keen pantherBOT
wind nimbus
#

florian_subscription-invoice