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 671 forks source link

Multiple allowed hosts for VerifyRedirectUrl middleware #951

Closed Zhythero closed 4 years ago

Zhythero commented 4 years ago

Hi,

My frontend and api(laravel) apps are hosted differently but I'm still utilizing the payment page of Cashier.

However, the payment page's redirect param only allows hosts from the laravel app. Would be nice to have a configuration for this where we could allow multiple hosts, in my instance, my front-end app.

Maybe add a config/cashier.php?

driesvints commented 4 years ago

You can overwrite the PaymentController, use Cashier::ignoreRoutes() and publish and overwrite the routes if you want this.