This commit is contained in:
Andras Bacsai 2023-07-13 15:45:42 +02:00
parent f3f8a62a18
commit e714e87ad6

View File

@ -139,15 +139,13 @@ function getSubscriptionLink()
$name = auth()->user()->name ?? null;
$url = "https://store.coollabs.io/checkout/buy/d0b28c6a-9b57-40bf-8b84-89fbafde6526?";
if ($user_id) {
$url .= "checkout[custom][user_id]={$user_id}";
$url .= "&checkout[custom][user_id]={$user_id}";
}
if ($email) {
$url .= "?checkout[email]={$email}";
$url .= "&checkout[email]={$email}";
}
if ($name) {
$url .= "&checkout[name]={$name}";
}
$url = "?checkout[custom][user_id]={$user_id}&checkout[email]={$email}&checkout[name]={$name}";
ray($url);
return $url;
}