付了钱不发货?
一共开了5个,前4个是正常的。这个号是新注册的,难道是这个原因?
半个小时了,还是没开通
是用代码获取的付款链接
(async function generateTeamHostedLink() {console.log(“⏳ [team-link] 正在获取 Session Token…”);
let accessToken;try {const session = await fetch(“/api/auth/session”).then((r) => r.json());accessToken = session?.accessToken;if (!accessToken) throw new Error(“accessToken 为空”);} catch (e) {console.error(“❌ [team-link] 获取 Token 失败,请确保已登录 ChatGPT:”, e.message);return;}
console.log(“✅ [team-link] Token 获取成功”);
const payload = {plan_name: “chatgptteamplan”,team_plan_data: {workspace_name: “MyTeam”,price_interval: “month”,seat_quantity: 2,},billing_details: {country: “GB”,currency: “GBP”, // ← 关键修改},cancel_url: “https://chatgpt.com/#team-pricing”,promo_code: “codestonegb”,checkout_ui_mode: “hosted”,};
console.log(“⏳ [team-link] 正在请求 Stripe 长链接…”);let data;try {const response = await fetch(“https://chatgpt.com/backend-api/payments/checkout”,{method: “POST”,headers: {Authorization: Bearer ${accessToken},“Content-Type”: “application/json”,},body: JSON.stringify(payload),});
data = await response.json();
if (!response.ok) {
console.error("❌ [team-link] 请求失败,HTTP", response.status);
console.error(data);
return;
}
} catch (e) {console.error(“❌ [team-link] 网络请求异常:”, e.message);return;}
const hostedUrl = data?.url || data?.stripe_hosted_url || data?.checkout_url;
if (!hostedUrl) {console.warn(“⚠️ [team-link] 未找到长链接,原始响应如下:”);console.log(data);return;}
console.log(“─”.repeat(60));console.log(“✅ [team-link] 生成成功!codestonegb promo 已生效”);console.log(“📋 Checkout Session ID :”, data.checkout_session_id);console.log(“🏢 Plan : ChatGPT Team(codestonegb)”);console.log(“👥 Seats :”, payload.team_plan_data.seat_quantity);console.log(“”);console.log(“🔗 Stripe 长链接:”);console.log(hostedUrl);console.log(“─”.repeat(60));console.log(“💡 提示:打开后检查优惠是否生效”);})();
在此处键入或粘贴代码
6 个帖子 - 3 位参与者