#anndonnelly
1 messages · Page 1 of 1 (latest)
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
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();
}```
That looks fine to me