laravel / cashier-stripe

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

[15.x] Fix unset 'return_url' for embedded UI without redirection #1631

Closed lowbits closed 9 months ago

lowbits commented 9 months ago

Adjusts the checkout logic to unset 'return_url' when the UI is in 'embedded' mode and the 'redirect_on_completion' option is set to 'never'. This change addresses API constraints and prevents errors associated with empty 'return_url' values in no-redirect scenarios.

Fixes #1629

driesvints commented 9 months ago

Thanks!