question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to add coupons or promotional codes to PaymentSheet?

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

4reactions
lucarduccicommented, Sep 21, 2022

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

0reactions
charliecruzan-stripecommented, Dec 6, 2022

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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add discounts for one-time payments | Stripe Documentation
Coupons specify a fixed value discount. You can create customer-facing promotion codes that map to a single underlying coupon. This means that the...
Read more >
Apple Pay to get coupon code feature in iOS 15 - Appleosophy
You can now enter coupon codes into the payment sheet, helping you save more whenever you use Apple Pay. And the enhanced summary...
Read more >
Checkout and payment - Apple Pay - Technologies - Design
If you offer a coupon or promotional code, you can enhance the express checkout experience by letting people enter it on the payment...
Read more >
No-code Stripe Coupons and Promotion Codes - YouTube
This video shows you how to add Stripe Coupons (legacy) and Stripe Promotion Codes to your existing website using Paid Members App.
Read more >
How to add coupon codes to payment forms - YouTube
Sign up for a free Jotform account at: https://link.jotform.com/lj5YyyldBs Coupons are a great way to keep your customers coming back to buy ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found