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.
Actually it works but what I want it to return is something like “http://localhost/html/my-site/…” but what I get with Url::to() is something like “/html/my-site/…” and I want it to also work in a production server.