How to add coupons or promotional codes to PaymentSheet?
See original GitHub issueIs 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.
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:6
I’m also looking to how to add
allow_promotion_codes: true
on thepaymentIntent
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)