flutter_stripe icon indicating copy to clipboard operation
flutter_stripe copied to clipboard

Add Promotion code parameter to `SetupPaymentSheetParameters`

Open Tom3652 opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? (please describe) I would like to be able to add a promotion code to a subscription. Currently there is no way to pass the promotion code to Stripe.instance.initPaymentSheet.

Describe the solution you'd like I would like to have a new parameter in SetupPaymentSheetParameters that is called promotionCode that displays the equivalent of this field from the Stripe documentation :

Capture d’écran 2024-03-27 à 08 35 00

Describe alternatives you've considered Designing a custom UI to enter a promo code before showing Stripe modal and use it inside the backend as a separate request to check if the promotion exists.

Additional context Thanks for the package !

Tom3652 avatar Mar 27 '24 07:03 Tom3652