Hi @jerrybarry – thanks for reporting this.
Apologies for the delay. I never received an email notification about this ticket. I’ll check to see what’s going on with that. It used to work!
Stripe Checkout allows use of a single coupon. It’s not a 1:1 relationship with WooCommerce coupons. I checked to confirm that this remains to the case as-of this writing. They document the process here: https://docs.stripe.com/payments/checkout/discounts
I had developed a PHP filter method for applying coupons. That filter is ccom_stripe_checkout_discounts
and it passes the order line items to your custom filter and accepts an array result of one or more discounts containing the name and percentage of each. From there it generates a single Coupon ID within Stripe Checkout and applies that to the payment process.
In my original use case (my own site) I was setting the coupon amount based on line items and custom business rules rather than a WooCommerce coupon or two, so this is why I built it that way.
I can certainly see a benefit to augmenting this to apply all WooCommerce coupons on the order as well. Luckily I see that they accept both percent_off
and amount_off
discount methods, which should generally match to WooCommerce coupons after other rules were applied by WooCommerce during the Pending order creation.
I’ll take this as a feature request, however I make a living doing this work and must await funding from somewhere while I have billable work to prioritize. This feels like a few hours of work to code, sandbox test it, and release it.
This topic can get more complex when factoring in subscriptions. There’s also some concern about generating these session type coupons versus re-using a previously generated coupon ID where the scheme (the combination of coupons therein) matches. I don’t have a solution for these more complex areas yet, but I see no reason for that to delay the basic support of WooCommerce coupons.