#aaparth-discount
1 messages ยท Page 1 of 1 (latest)
yeah that is weird. I think it is how discounts on prorations work unfortunately! Here the only charge on the invoice is a prorated one since the billing anchor is in the future when you created the subscription, and the way it works is the discount is already part of the calculated proration amount and is not pulled out separately.
as far as I know it's a bug/edge case we're aware of
so is there anything I can do as a workaround to make it right ?
and my second question is, can I pass the proration_date at the time of subscription creation ?
AFAIK no!
what would that mean exactly? You can't pass proration_date no, but you can pass billing_cycle_anchor (which you do), which has the effect of charging a prorated amount from now until that date. What would you want to do differently/what does proration_date do you for in your mind?
actually I was thinking of passing the proration_date so that Stripe will calculate from the time the user has viewed the remaining time on subscription till next date and then I will pass the discount amount in the metadata so that I can use that in my webhook
for example: as I am checking the amount using retrieveUpcoming invoice which returns 50 bucks and user stays at the page for a while and then the charge has been shifted to 49.5 so I can't calculate the accurate discount passed into Metadata. So I was wishing if I could pass the proration_date so stripe will calculate the charge since the time user has viewed the invoice
and it charges the customer with 50 bucks instead of 49.5
yeah I don't think we support that use case on creating a subscription unfortunately! only on update.
there's a quotes API(https://stripe.com/docs/quotes) which is meant to allow for use cases more like that, but it's in private beta and extremely complex so I wouldn't really recommend it
@loud dragon
is there a way we can find what was the stripe fee on my payment
thank mate ๐๐ป ๐๐ป