Skip to content

useCheckoutPricing with single-use coupon and free trial plan #141

Open
@andreisocaciu

Description

@andreisocaciu

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions