laravel / cashier-stripe

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.
https://laravel.com/docs/billing
MIT License
2.37k stars 670 forks source link

Cashier support for no-cost orders via Checkout #1610

Closed jakecausier closed 8 months ago

jakecausier commented 9 months ago

Stripe has launched a new feature through their Checkout which allows for no-cost orders to be placed when the Checkout session is set to payment. However, attempting to create a checkout session with Cashier when the line items total to zero brings up the following error:

The Checkout Session's total amount due cannot be zero in `payment` mode.

Our website depends on Stripe webhooks to confirm a user has completed and paid for an order (even free orders, like subscriptions) so having to work around this would be complicated (and frankly, annoying).

The feature is on Stripe's API version 2023-08-16 which is quite far ahead of the current API version locked for Cashier, is this potentially being looked into being changed soon or would it be worth implementing a workaround myself for this using Stripe's PHP API directly?

driesvints commented 9 months ago

I'm gonna work on a new Cashier Stripe version very soon to support their latest API updates so I'll also have a look at this one, thanks.

jakecausier commented 9 months ago

Great to hear, thanks!

driesvints commented 8 months ago

I guess this will be supported once Cashier v15 is released with the new version. The release is almost ready.