true, CURLOPT_USERPWD => STRIPE_SECRET_KEY . ':', ]); $response = json_decode(curl_exec($ch), true); curl_close($ch); $isActive = false; if (!empty($response['data'])) { foreach ($response['data'] as $customer) { // Check subscriptions for this customer $ch2 = curl_init('https://api.stripe.com/v1/subscriptions?customer=' . $customer['id'] . '&status=active&limit=5'); curl_setopt_array($ch2, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_USERPWD => STRIPE_SECRET_KEY . ':', ]); $subs = json_decode(curl_exec($ch2), true); curl_close($ch2); if (!empty($subs['data'])) { $isActive = true; break; } } } if ($isActive) { // Active subscriber — redirect with pro=1 header('Location: ' . SUNSCOPE_URL . '/?pro=1'); exit; } else { $error = 'No active SunScope Extra subscription found for that email.'; } } } ?> Restore Access · SunScope Extra
See the sun the way your body does.

Restore your access

Enter the email address you used to subscribe and we'll unlock SunScope Extra on this browser.

← Back to SunScope