#tymm

1 messages · Page 1 of 1 (latest)

crisp basinBOT
#

Hello tymm, 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.
https://discord.com/channels/841573134531821608/1164393088513482752, 0 days ago, 6 messages
https://discord.com/channels/841573134531821608/1163768763452244058, 2 days ago, 11 messages
https://discord.com/channels/841573134531821608/1163751285271572553, 2 days ago, 5 messages
https://discord.com/channels/841573134531821608/1163655242676707339, 2 days ago, 20 messages
https://discord.com/channels/841573134531821608/1161943794393030656, 7 days ago, 18 messages

slow kernel
#

hello! we'd prefer to create a new thread. Can you share what are your new questions?

crisp basinBOT
full plover
#

i had questions about the calculation of tax of this invoice in_1O2ltTBckS6y14sIqJ0eJ9Iv
because the amount that i calculated myself does not tally with stripe's and i have been told that the tax is calculated by each item line instead of the total payable.

#

now i have this invoice in_1O2qTiBckS6y14sIZBYPeCE2
and i need advice on formula to calculate the total discount amount.

#

it seems like the discount is calculated like this 40.50 * .33 = 13.365 ~ 13.37
if i calculate by each item line instead :
3.5 * .33 = 1.155 ~ 1.16
1.16 * 3 = 3.48
30 * .33 = 9.9
9.9 + 3.48 = 13.38
i would get 13.38

soft saffron
#

Hey! Taking over for my colleague. Let me catch up.

full plover
#

so... why is the discount calculated by total but tax by each item? why the inconsistency...

soft saffron
#

For question regarding calculation and pricing, you should reach out to Stripe Support

#

this channel is for technical integraion question only regarding Stripe APIs

full plover
#

actually i was trying to simulate upcoming api for one off invoice. iirc it is only for subscriptions? is there a better way to do this rather than dealing with the calculations myself?

soft saffron
#

You can specify whether for a Customer or a Subscription:

full plover
#

im getting the subscription of the customer instead of the one time item

soft saffron
#

That's how the API working

#

You can't get a simulation of a one time Invoice

full plover
#

i want only the invoice of the one time items this customer is buying without actually making the invoice yet

soft saffron
#

No there is no API for that yet

soft saffron
#

But creating an Invoice in a draft status could help you achieve this

full plover
#

hmm

#

stripe doesnt care if a customer has like hundreds of draft invoice right?

#

i mean we wont stop them from creating these "drafts"

#

does stripe auto clear these stale invoices? (or should i care?) if theres no drawbacks on going this route i will try it

soft saffron