stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

How to add coupons or promotional codes to PaymentSheet?

Open NatMuel opened this issue 2 years ago • 12 comments

Is your feature request related to a problem? Please describe. I am using the paymentIntents.create with a AWS Amplify GraphQL API to create a paymentIntent as described in the docs. Afterwards I initialize it with initPaymentSheet and subsequently present it using presentPaymentSheet. I would like to know how I would be able to add promotional codes linked to coupons/discounts similar to stripe.checkout.sessions.create

discounts: [{
    coupon: '{{COUPON_ID}}',
  }]

or allow_promotion_codes: true

Describe the solution you'd like I would like the paymentSheet to be initialized with a promotional code input field where customers can redeem their coupons/discounts.

Describe alternatives you've considered I have considered using the checkout and sessions API's but found no way for the paymentIntent API.

NatMuel avatar Sep 14 '22 08:09 NatMuel

I'm also looking to how to add allow_promotion_codes: true on the paymentIntent

lucarducci avatar Sep 21 '22 13:09 lucarducci

Also looking for this. @lucarducci @NatMuel Any progress?

kvacke avatar Oct 03 '22 12:10 kvacke

Any updates?

wing199901 avatar Oct 12 '22 09:10 wing199901

@kvacke No, unfortunately not. Currently I use a seperate discount input field, handle the discount codes separately and update the payment amount that the paymentIntend receives.

NatMuel avatar Oct 12 '22 09:10 NatMuel

x2

briancharta avatar Oct 13 '22 23:10 briancharta

Unfortunately this isn't planned yet, you would need to handle this outside of the payment sheet flow (maybe making use of the customFlow: true parameter to separate out the "select payment method" and "confirm" steps)

charliecruzan-stripe avatar Dec 06 '22 23:12 charliecruzan-stripe

This is a feature that would be awesome to have.

jorgerojas26 avatar Aug 09 '23 22:08 jorgerojas26

+1 for this feature

astletron avatar Oct 30 '23 14:10 astletron

Another reason to have this built into the UI is that, I want to show my users that they are getting discounted prices and not the actual price. I want to show them both prices but one with a strikethrough on it.

umrashrf avatar Jun 14 '24 15:06 umrashrf

How can I redeem a promo code using the Stripe API and ensure Stripe tracks the redemption count, especially when there’s a max number of redemptions?

craigRSA avatar Jul 11 '24 15:07 craigRSA