stripe-react-native
stripe-react-native copied to clipboard
How to add coupons or promotional codes to PaymentSheet?
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.
I'm also looking to how to add allow_promotion_codes: true
on the paymentIntent
Also looking for this. @lucarducci @NatMuel Any progress?
Any updates?
@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.
x2
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)
This is a feature that would be awesome to have.
+1 for this feature
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.
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?