#anndonnelly

1 messages · Page 1 of 1 (latest)

cloud fiberBOT
high solstice
#

Hi there

#

The return_url is for redirecting the customer back to your website if they click on the portal's link to return to your website

#

Basically just allows the customer to navigate back to your website from the portal UI

upper flame
#

Great makes sense, thank you

#

Does this look appropriate

#
        // Authenticate your user.
        $session = Session::create([
        'customer' => '{{CUSTOMER_ID}}',
        'return_url' => getenv('FRONTEND_URL') . "/profile/settings",
        ]);

        // Redirect to the customer portal.
        header("Location: " . $session->url);
        exit();
    }```
high solstice
#

That looks fine to me