@YAIBIWAIBY #8 (async function () { console.log("⏳ 正在为 datroaiuk 生成英国版支付长链接..."); try { const session = await fetch("/api/auth/session").then((r) => r.json()); if (!session.accessToken) { throw new Error("无法获取 Token,请确保已登录 ChatGPT"); } const payload = { plan_name: "chatgptteamplan", team_plan_data: { workspace_name: "myWorkspace", price_interval: "month", seat_quantity: 2 }, billing_details: { country: "GB", // 英国专用 currency: "GBP" // 英镑 }, cancel_url: "https://chatgpt.com/?promoCode=datroaiuk", promo_code: "datroaiuk", checkout_ui_mode: "hosted" }; const response = await fetch( "https://chatgpt.com/backend-api/payments/checkout", { method: "POST", headers: { Authorization: Bearer ${session.accessToken}, "Content-Type": "application/json", }, body: JSON.stringify(payload), } ); const data = await response.json(); if (data.url) { console.clear(); console.log("%c✅ 成功生成带 datroaiuk 优惠的长链接:", "color: #10a37f; font-size: 22px; font-weight: bold;"); console.log(data.url); console.log("\n%c直接点开这个链接 → 应该能看到 £11(2席位,48个月锁定)优惠价格", "color: gray; font-size: 16px;"); } else { console.error("❌ 生成失败,响应:", data); } } catch (e) { console.error("❌ 执行出错:", e); } })();
@YAIBIWAIBY #8 你要的是这个? (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); } })();
@YAIBIWAIBY #8
(async function () {
console.log("⏳ 正在为 datroaiuk 生成英国版支付长链接...");
try {
const session = await fetch("/api/auth/session").then((r) => r.json());
if (!session.accessToken) {
throw new Error("无法获取 Token,请确保已登录 ChatGPT");
}
const payload = {
plan_name: "chatgptteamplan",
team_plan_data: {
workspace_name: "myWorkspace",
price_interval: "month",
seat_quantity: 2
},
billing_details: {
country: "GB", // 英国专用
currency: "GBP" // 英镑
},
cancel_url: "https://chatgpt.com/?promoCode=datroaiuk",
promo_code: "datroaiuk",
checkout_ui_mode: "hosted"
};
const response = await fetch(
"https://chatgpt.com/backend-api/payments/checkout",
{
method: "POST",
headers: {
Authorization:
Bearer ${session.accessToken},"Content-Type": "application/json",
},
body: JSON.stringify(payload),
}
);
const data = await response.json();
if (data.url) {
console.clear();
console.log("%c✅ 成功生成带 datroaiuk 优惠的长链接:", "color: #10a37f; font-size: 22px; font-weight: bold;");
console.log(data.url);
console.log("\n%c直接点开这个链接 → 应该能看到 £11(2席位,48个月锁定)优惠价格", "color: gray; font-size: 16px;");
} else {
console.error("❌ 生成失败,响应:", data);
}
} catch (e) {
console.error("❌ 执行出错:", e);
}
})();
果然,还是支付失败
这次我不能再错过了
是不是需要英国节点啊
上车!
刚上泰国车
@YAIBIWAIBY #8
你要的是这个?
@HugoHo #17 Godblessyou
bitget上车成功
用n26和wise付款失败,用的是美国免税地址,bill address是不是要改为跟N26或wise的账单地址一样,才能付成功?