#Empress Brosephine

1 messages · Page 1 of 1 (latest)

obtuse talonBOT
meager coral
#

Hi there! Coupons can't be used with one-off PaymentIntents.

uneven parcel
#

gotchaaa

meager coral
#

Instead, you'll want to consider any discounts server side and create a PaymentIntent with the appropriate amount

uneven parcel
#

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?

meager coral
#

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.

uneven parcel
#

No worries - just wondering the alternative to PaymentINtents + PaymentElement which seems to be doing it all server side

#

sweet thanks

meager coral
#

sure thing!

uneven parcel
#

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?

meager coral
#

Not exactly. Coupons/discounts can be used with Subscriptions, Invoices, and Quotes, in addition to Checkout Sessions

uneven parcel
#

ahhhh gotcha, just not one timers

#

sweeet thanks and have a good night