首先我是参考这个文章的
https://linux.do/t/topic/2092962
通过泰国的邀请码 折扣码进入打折页面
打开F12 设置允许粘贴 下面的代码是一位老哥提供的 感谢他哈
(async function () {
console.log(" 正在为 thinkingmachinesth 生成泰国版支付长链接...");
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: "TH", // 泰国
currency: "THB" // 泰铢
},
cancel_url: "https://chatgpt.com/?promoCode=thinkingmachinesth",
promo_code: "thinkingmachinesth",
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 成功生成带 thinkingmachinesth 优惠的长链接:", "color: #10a37f; font-size: 22px; font-weight: bold;");
console.log(data.url);
console.log("\n%c直接点开这个链接 → 应该能看到对应的泰铢(THB)优惠价格", "color: gray; font-size: 16px;");
} else {
console.error(" 生成失败,响应:", data);
}
} catch (e) {
console.error(" 执行出错:", e);
}
})();
然后执行过后会生成一个长连接付款地址
下面讲一下你们可能会遇到的坑
通过长链接支付的时候 如果付款不成功可以通过切换IP的方式支付 但是你要注意 不是切换OPENAI的规则而是切换stripe的规则 我就是因为这个付了很多次没有付款成功 最后换了个IP就付款成功了
还有就是我用的n26 用的一张卡 没有换IP前一直点 没想到换了IP之后还能付款 n26优秀啊
2 个帖子 - 2 位参与者