#waldeedle_proration-discount
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/1245785794439020659
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
@west steppe sadly there is no good way here unfortunately since this isn't surfaced in the API ๐ฆ
only way I can think of is to look at the Price amount and then kind of reverse engineer/math out what happened for the discount
waldeedle_proration-discount
That's the approach I was taking already I guess I'm trying to sanity check the approach. Iterate through the lines.data object and look at the price.unit_price (without any adjustments) then compare it with the unit_amount_without_tax for the line item
Then work backwards from the with the specific discounts that apply?
Would this potentially be surfaced in the future? As stripe is starting to implement more around discounts and promos?
So we are literally working on a fix right now. I saw a proposal about it just last Monday. So I'm hopeful. But i have seen proposals about this multiple times in the past 5 years that didn't end up being implemented so I don't want to promise anything ๐ฆ