react-recurly icon indicating copy to clipboard operation
react-recurly copied to clipboard

useCheckoutPricing with single-use coupon and free trial plan

Open andreisocaciu opened this issue 5 years ago • 3 comments

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)

andreisocaciu avatar Jun 22 '21 13:06 andreisocaciu

Up

saamipop avatar Aug 20 '21 06:08 saamipop

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.

saamipop avatar Dec 06 '22 13:12 saamipop

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.

ctrble avatar Jun 20 '24 13:06 ctrble