useCheckoutPricing with single-use coupon and free trial plan
Describe the bug
When using the hook useCheckoutPricing with a single-use coupon applied to a free trial plan, the price.next.discount value is 0.
To Reproduce
Use a plan with a free trial and a single-use coupon.
Expected behavior
price.next.discount to be equal to the discounted value
Your Environment
- @recurly/react-recurly: 1.2.2
- react: 17.0.1
- Google Chrome Version 91.0.4472.114 (Official Build) (x86_64)
Up
Hi. We still encounter this bug. Does anybody have a solution for this ? We are using useCheckoutPricing hook and for cupons that are single-use the discount value comes as 0.
Is there an update on this? We'd like to use useCheckoutPricing but this issue is blocking us. We're on react-recurly v2.0.1 and were able to reproduce the issue.