#Empress Brosephine
1 messages · Page 1 of 1 (latest)
Hi there! Coupons can't be used with one-off PaymentIntents.
gotchaaa
Instead, you'll want to consider any discounts server side and create a PaymentIntent with the appropriate amount
interesting, that makes sense - didn't consider that. Then you would just record the "discount" as metadata I presume
otherwise you would do a custom cart type thing?
You could keep track of any discounts in metadata, yep. Not sure what you mean by custom cart. Using PaymentIntents + the PaymentElement instead of using Checkout means you'll need to build your own checkout page, yes.
No worries - just wondering the alternative to PaymentINtents + PaymentElement which seems to be doing it all server side
sweet thanks
sure thing!
Last question and apologies! So from my reading there's no way to handle discounts within Stripe's form of discounts without a stripe hosted checkout page?
Not exactly. Coupons/discounts can be used with Subscriptions, Invoices, and Quotes, in addition to Checkout Sessions