• Resolved jerrybarry

    (@jerrybarry)


    Hello,

    I would like to report an issue with the coupon I created not being applied at the final step of the Stripe checkout process. Although the discount appears to be applied throughout the transaction until the payment stage, it is ultimately not reflected at the point of payment.

    Your prompt assistance in resolving this matter would be greatly appreciated.

    Thank you for your attention to this issue.

    [ Please do not bump. ]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sean Conklin

    (@seanconklin)

    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.

    Hi ??

    I would love to use your plugin because I want to redirect the visitors to Stripe’s checkout but it would be needed to have the coupons work. Have you maybe had a chance to make it work ??

    Thank you for your help in advacen!

    Plugin Author Sean Conklin

    (@seanconklin)

    It took six months, but I finally had reason to make some time to add support for Woo coupons, positive and negative fees. This is done in version 1.7. I also added shipping line item support while I was at it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with Coupon Not Applied at Stripe Checkout’ is closed to new replies.