Hi,
I’m trying to integrate Stripe to my web-app. In order to do so I need a success_url and an cancel_url.
I have to pass it like this :
$checkout_session = \Stripe\Checkout\Session::create([
'success_url' => url,
...
...])
But as I already am in a Controller (let’s call it PaymentController) I guess that I need to access this Url differently than usually because a Url::to(‘controller/action’) does not work. Also I’m developing on local but the Stripe API needs an http url.
If you have an idea of how I should proceed let me know.
Thank you.