I use stripe to process payments in my application.
I created a plan and I have some coupons.
I am creating a subscription using the following code.
customer.subscriptions.create (plan = PLAN_type, coupon = PROMO_CODE)
but I want to know the amount that the customer will charge him if he turns out to be a decent coupon so that I can display it on a web page.
I can get the plan amount and the discount offered by the coupon. But now I want to receive the total amount after applying the coupon.
I can do this by manually applying a discount to the amount, but I want to know if there is a way from the API to do this
source share