![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/soundstudiopro.com/public_html/ |
<?php
session_start();
require_once 'config/database.php';
if (!isset($_SESSION['is_admin']) || !$_SESSION['is_admin']) {
die("Admin access required");
}
$stripe_secret = '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';
// Get ALL prices from Stripe
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.stripe.com/v1/prices?limit=100&type=recurring');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $stripe_secret]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$prices_data = json_decode($response, true);
$price_map = [];
if (isset($prices_data['data'])) {
foreach ($prices_data['data'] as $price) {
$amount = $price['unit_amount'] / 100;
$price_map[(string)$amount] = $price['id'];
}
}
echo "Prices in Stripe:<br>";
foreach ($price_map as $amount => $price_id) {
echo "\${$amount} → {$price_id}<br>";
}
// Plans needed
$needed = ['5' => 'essential', '15' => 'starter', '35' => 'pro', '75' => 'premium', '349' => 'enterprise'];
echo "<br><br>What we need:<br>";
foreach ($needed as $amount => $plan) {
if (isset($price_map[$amount])) {
echo "✅ {$plan} (\${$amount}) → {$price_map[$amount]}<br>";
} else {
echo "❌ {$plan} (\${$amount}) → MISSING<br>";
}
}