#mactavish_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/1316478580158365757
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Let me provide the full message here again. ๐
I have a question regarding subscriptions.
Is it possible to charge variable/different price on each subscription cycle (monthly)?
The background of it is:
we have telr & paypal as payment processor. We want to switch over to Stripe gradually because stripe would put hold on funds if large payment volume comes in.
Right now, we have cost calculation built into our application in the following way:
For the first month, the customer invoice is built in a metered pricing model for the remaining days of the month. For Example, If customer is purchasing on 10th of month, they will be charged the cost of their items for 20 remaining days of the month.
For the next month, customer can update their order by adding/removing some items. The invoice is finalized by 1st of each month and the subscription cycle is from 1st to 1st of each month. Once invoice is finalized, changes in order will reflect in next invoice/month.
What we want is subscriptions flow (automatic charging at a given date) but the amount for each month can vary if customer adds/removes some items.
I've looked at docs but there's so much and it's putting me in trust issues. So I am reaching out here for confirmation and finding out whether I am being wrong or the approach is gonna hurt/bite back in future.
Hello
The pricing model doc you've shared is the one I'd recommend reading again and trying it out in test mode - https://docs.stripe.com/products-prices/pricing-models
That way you can be certain of the expected behavior of the API and can build your integration with confidence.
Variable pricing can be achieved in various ways. Like You can go usage based billing or per-seat pricing etc. You'd need to decide what fits best for your usecase and select the model accordingly.
The best option here is to test the pricing models using test clocks and seeing how the subscription behaves in test mode. Live mode behavior would be identical.
https://docs.stripe.com/billing/testing/test-clocks
Is there a way to simply set an invoice/charge for a subscription (and be able to change it for each cycle) in a way similar to checkout session where we can determine the price in our app and just pass on to stripe to charge that amount to customer?
You can create one-off invoices yourself if you want to do something that's not covered by Stripe's Subscriptions API - https://docs.stripe.com/invoicing/integration
But I'd recommend not doing that as building your own billing engine can become complex very quickly. Your usecase is quite common and should be covered by the pricing models Stripe offers.
Thank you hanzo. Let me go through these docs once again.
I might have to come back here again.
NP! ๐ Take your time reviewing it. If you run into issues, you know where to find us ๐