ChatGPT Team/Business 买一送一持续48个月!订购教程
- 获取链接
- X
- 电子邮件
- 其他应用
用长链接方式,就可以支付了,N26 卡支付成功
免税州地址地址生成:https://www.meiguodizhi.com/usa-address/oregon
N26外币卡: https://n26.com/r/jingyual63106c?cid=0JY&lang=en
英国优惠码:
https://chatgpt.com/?promoCode=aibuildgroupgb
https://chatgpt.com/?promoCode=geccogb
美国优惠:
https://chatgpt.com/?promoCode=talentgeniusus
https://chatgpt.com/?promoCode=thealloynetwork
https://chatgpt.com/?promoCode=alongsideus
https://chatgpt.com/?promoCode=monicaius
肯尼亚优惠码
https://chatgpt.com/?promoCode=wildmangoke
// 美国 生成长连接代码:
(async function generateTeamHostedLink() {
console.log("⏳ [team-link] 正在获取 Session Token...");
// ── 1. 获取当前登录的 Access 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 获取成功");
// ── 2. 构造请求 Payload ──────────────────────────────────────────────────
const payload = {
plan_name: "chatgptteamplan",
team_plan_data: {
workspace_name: "MyTeam", // ← 你可以改成自己想要的工作区名字
price_interval: "month", // month 或 year
seat_quantity: 2, // ← 至少填 2,推荐 2~5
},
billing_details: {
country: "US", // 必须 US
currency: "USD",
},
cancel_url: "https://chatgpt.com/#team-pricing",
// 🔥 关键:使用 promo_code(talentgeniusus专用)
promo_code: "talentgeniusus",
checkout_ui_mode: "hosted",
};
// ── 3. 发送请求 ──────────────────────────────────────────────────────────
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;
}
// ── 4. 输出结果 ──────────────────────────────────────────────────────────
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] 生成成功!THINKTECHNOLOGIES promo 已生效");
console.log("");
console.log("📋 Checkout Session ID :", data.checkout_session_id);
console.log("🏢 Plan : ChatGPT Team(THINKTECHNOLOGIES)");
console.log("👥 Seats :", payload.team_plan_data.seat_quantity);
console.log("");
console.log("🔗 Stripe 长链接(直接打开即可支付):");
console.log(hostedUrl);
console.log("─".repeat(60));
console.log("💡 提示:打开链接后检查价格是否已应用优惠");
})();
// 英国长连接代码
(async function generateAUTeamLink() {
console.log("⏳ 正在获取B Session Token...");
// 自动获取登录凭证
let accessToken;
try {
const s = await fetch("/api/auth/session").then(r => r.json());
accessToken = s?.accessToken;
if (!accessToken) throw new Error("accessToken 为空");
} catch (e) {
console.error("❌ 获取 Token 失败:", e.message);
return;
}
console.log("✅ Token 获取成功");
const COUPON = "codestonegb";
// ---- 以下为你提供的 Payload(仅修改 workspace_name 动态生成)----
const payload = {
plan_name: "chatgptteamplan",
team_plan_data: {
workspace_name: "workspace", // 可自行修改
price_interval: "month", // month 或 year
seat_quantity: 2, // 席位数量,Team 最少 2?1的话是另外种玩法,需要号
},
billing_details: {
country: "GB",
currency: "GBP"
},
cancel_url: "https://chatgpt.com/?promoCode=codestonegb",
promo_code: COUPON, // 注意这里用的是 promo_code 字段
checkout_ui_mode: "hosted"
};
console.log("⏳ 正在请求 Stripe 长链接 (US)...");
try {
const resp = await fetch(
"https://chatgpt.com/backend-api/payments/checkout",
{
method: "POST",
headers: {
Authorization: `Bearer ${accessToken}`,
"Content-Type": "application/json"
},
body: JSON.stringify(payload)
}
);
const data = await resp.json();
if (!resp.ok) {
console.error(`❌ 请求失败 HTTP ${resp.status}`);
console.log("📋 响应详情:", data);
return;
}
const hostedUrl = data?.url || data?.stripe_hosted_url || data?.checkout_url;
if (!hostedUrl) {
console.warn("⚠️ 未找到长链接,原始响应:", data);
return;
}
console.log("─".repeat(60));
console.log("✅ ChatGPT Team 链接生成成功!(美国)");
console.log("📋 Checkout Session ID :", data.checkout_session_id);
console.log("📌 计划 : ChatGPT Team (US/USD)");
console.log("💺 席位 :", payload.team_plan_data.seat_quantity);
console.log("🎟️ 优惠码 :", COUPON);
console.log("🔗 Stripe 长链接:");
console.log(hostedUrl);
console.log("─".repeat(60));
} catch (e) {
console.error("❌ 网络异常:", e.message);
}
})();
- 获取链接
- X
- 电子邮件
- 其他应用
评论
发表评论