use-stripe-subscription icon indicating copy to clipboard operation
use-stripe-subscription copied to clipboard

added support for promotion codes

Open gannonh opened this issue 2 years ago • 2 comments

In order to support promotion codes, Stripe requires that you set allow_promotion_codes: true when instantiating a checkout session. I made that change and nothing else. Confirmed that the Stripe portal now includes a promotion codes box when checking out.

gannonh avatar Mar 15 '23 20:03 gannonh

Much needed! i hope this gets merged

RyanTippsTX avatar Apr 03 '23 19:04 RyanTippsTX

Instead of this being hardcoded to true, it should be based on a user prop. It looks like it can be added as a prop as a featureArg

mtliendo avatar Jul 25 '23 02:07 mtliendo