#florian_subscription-invoice
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/1275469465173364840
๐ 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.
- florian-ruen_api, 6 minutes ago, 33 messages
- florian-ruen_best-practices, 2 hours ago, 90 messages
- florian-ruen_api, 5 days ago, 20 messages
This is a follow up from a small thread: https://discordapp.com/channels/841573134531821608/1275446510837825608
The latest message was that I can update the invoice item from subscription, but according to API response, it's not possible to update the description
Hi there ๐ I don't think there's anything wrong, I believe that's expected to not be supported.
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%)
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.
Understood, I think that over the course of the discussions, Stripe is not necessarily suitable for complex pricing (due to limitations).
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.
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)
๐ 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.
florian_subscription-invoice