#aaparth-discount

1 messages ยท Page 1 of 1 (latest)

loud dragon
#

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

primal bronze
#

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 ?

loud dragon
primal bronze
#

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

loud dragon
#

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

primal bronze
#

okay

#

thanks @loud dragon

primal bronze
#

@loud dragon

is there a way we can find what was the stripe fee on my payment

primal bronze
#

thank mate ๐Ÿ‘๐Ÿป ๐Ÿ‘๐Ÿป