laravel / cashier-stripe

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

[15.x] Catch missing payment intents #1704

Closed shatterproof closed 3 months ago

shatterproof commented 3 months ago

This gracefully returns a not found exception instead of a 500 error when trying to access a non-existent or invalid payment intent ID in the browser such as from the route /stripe/payment/xxx.

shatterproof commented 3 months ago

This was marked as a draft but should be ready to go, let me know if you need any changes @driesvints