I'm using stripe to process payments in my app.
I have created a plan and I have some coupons.
I am creating a subscription using following code.
customer.subscriptions.create(plan=PLAN_type,coupon=PROMO_CODE)
but I want to know the amount the customer going to charged if he appy coupon, so that I can display it to him on a webpage.
I am able get the amount of a plan and discount offered by a coupon. But now I want the total amount after applying the coupon.
I can do this by manually applying discount to the amount , but I want to know is there a way from API to do this