#dicbra
1 messages · Page 1 of 1 (latest)
hi! well Coupons don't have that restriction, but you could associate the Coupon with a PromoCode that does.
https://stripe.com/docs/billing/subscriptions/coupons#promotion-codes
Then I can't use it on the invoice? Invoice does not accept promo codes, only coupons.
i.e. you are using one-off manually created Invoices for the payment?
I think you can apply the promo code to a customer instead : https://stripe.com/docs/api/customers/create#create_customer-promotion_code and the invoice will inherit, but you'd need to test it.
Honestly it's probably easiest to just implement this logic yourself(check in your database if that user of your has previous activity, if they do not, pass coupon to the Invoice; if they do, don't pass it).