#ayeshaikh_7
1 messages · Page 1 of 1 (latest)
Hi there!
It depends, do you know which Stripe product you want to use? Payment Link, Checkout Session, Payment Element, etc.
Stripe Element
Then you should read this guide: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
Payment Element don't support coupons. So I would recommend to either use Checkout Session, or build your own coupon system that updates the PaymentIntent price.
then the invoice won't have applied coupons details right?
Oh, you are using invoices? Then yes coupons do work with invoices.
When you create the Invoice, set the discount property: https://stripe.com/docs/api/invoices/create?lang=php#create_invoice-discounts
I did not get it, what do you mean by using invoices
then the invoice won't have applied coupons details right?
You used the word "invoice".