Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tptompkins's avatar

100% Off Coupon with Stripe doesn't work all that great

Hello,

I'm still on an older Laravel 5.2 installation with Spark version 1.0.14 and I tried creating a 100% off "forever" coupon in Stripe and using that coupon with a monthly plan. After doing so, I received the following error from Stripe behind the scenes:

{
  "error": {
    "type": "invalid_request_error",
    "message": "Coupon expired: THE_COUPON_NAME",
    "param": "coupon"
  }
}

It says that the coupon expired even though the expiration is set in the future. But what's weird is that the pdf invoice in Spark does contain the proper discount and has the correct total of $0.00. I also am showing that the coupon was applied to the customer's account in Stripe.

The other thing that's off is that in Kiosk, it's reporting that I'm getting full price for the subscription and is not taking the coupon into account.

Questions

  • Does anyone know if this is an issue in newer versions of Spark as well?
  • Is there a better way to give a customer access to a particular plan for free without using a Stripe coupon?
0 likes
3 replies
ejdelmonico's avatar

I use one (100% off coupon) for one of my customers. It has been working fine for over a year. The tracking data has never been correct on a cash basis. However, when considering non-cash accounting, the sale is recorded as such and you would manually have to defer the payment through the coupon as a marketing campaign or whatever you want.

tptompkins's avatar

Thanks @ejdelmonico. I wonder how difficult it would be to modify things so that the Kiosk takes discounts into account.

ejdelmonico's avatar

Probably not that difficult but then you have to go granular when updating the app code because you would need to modify the framework. It would be nice if they included a customizable statistical dashboard.

Please or to participate in this conversation.