n/aiu/echo1 · 3 个月前
注册 登录
n/ai · 3 个月前 · 已编辑 · 963 次浏览
u/echo1青铜

gpt直卡经验(编辑排版版)

1.一定要用gmail邮箱,千万别用outlook邮箱,同样的环境下outlook不行,gmail可以。gmail老号也可以,只要能提出菲区的链接,就是0元的。IP是webshare的伪家宽。
2.进行提链,有手法的用这个

https://pay.153.ink/

”没有手法用这个“

https://sms.linlinflow.ccwu.cc/ticdk/

3.提一次链接就行了,提完在登陆gpt的同一个浏览器打开,不要乱复制,这个是短链。

4.看到是0元后f12控制台输入脚本:

(async () => {
  'use strict';

  const old = document.getElementById('__personal_card_stripe_modal__');
  if (old) old.remove();

  // Stripe publishable key 是前端公开配置。优先从当前页面资源自动发现,
  // 个人账单目前存在两个 Stripe 商户分片;SetupIntent 只能由所属
  // 分片的 publishable key 确认。
  const KNOWN_PUBLISHABLE_KEYS = {
    KslHRdbaPg: 'pk_live_51Pj377KslHRdbaPgTJYjThzH3f5dt1N1vK7LUp0qh0yNSarhfZ6nfbG7FFlh8KLxVkvdMWN5o6Mc4Vda6NHaSnaV00C2Sbl8Zs',
    C6h1nxGoI3: 'pk_live_51HOrSwC6h1nxGoI3lTAgRjYVrz4dU3fVOabyCcKR3pbEJguCVAlqCxdxCUvoRh1XWwRacViovU3kLKvpkjh7IqkW00iXQsjo3n'
  };

  async function discoverPublishableKey() {
    const pattern = /pk_(?:live|test)_[A-Za-z0-9]{20,}/;

    // 已发起过 Stripe 请求时,可直接从 Resource Timing URL 中读取 key 参数。
    for (const entry of performance.getEntriesByType('resource')) {
      const match = String(entry.name || '').match(pattern);
      if (match) return match[0];
    }

    // 查找当前文档中的内联配置和 script URL。
    const htmlMatch = document.documentElement.innerHTML.match(pattern);
    if (htmlMatch) return htmlMatch[0];

    // 尝试扫描已加载的同源 JS chunk;跨域失败会被跳过。
    const scripts = [...document.scripts]
      .map((script) => script.src)
      .filter(Boolean)
      .slice(-80);
    for (const src of scripts) {
      try {
        const url = new URL(src, location.href);
        if (url.origin !== location.origin) continue;
        const body = await fetch(url, { credentials: 'include' }).then((r) => r.text());
        const match = body.match(pattern);
        if (match) return match[0];
      } catch (_) {
        // 继续尝试其他 chunk。
      }
    }

    return KNOWN_PUBLISHABLE_KEYS.C6h1nxGoI3;
  }

  async function resolveStripeForIntent(clientSecret, discoveredKey) {
    const hinted = Object.entries(KNOWN_PUBLISHABLE_KEYS)
      .filter(([fragment]) => String(clientSecret || '').includes(fragment))
      .map(([, key]) => key);
    const candidates = [
      ...hinted,
      discoveredKey,
      ...Object.values(KNOWN_PUBLISHABLE_KEYS)
    ].filter((key, index, all) => key && all.indexOf(key) === index);

    let lastError = null;
    for (const key of candidates) {
      const candidate = window.Stripe(key);
      const probe = await candidate.retrieveSetupIntent(clientSecret);
      if (probe.setupIntent) return { stripe: candidate, publishableKey: key };
      lastError = probe.error || lastError;
    }
    throw lastError || new Error('没有匹配当前 SetupIntent 的 Stripe 公钥');
  }

  const sessionResponse = await fetch('/api/auth/session', {
    credentials: 'include',
    cache: 'no-store'
  });
  if (!sessionResponse.ok) {
    console.error('[绑卡] 当前会话读取失败:', sessionResponse.status);
    return;
  }

  const session = await sessionResponse.json();
  const accountId = session?.account?.id;
  const accessToken = session?.accessToken;
  if (!accountId || !accessToken) {
    console.error('[绑卡] 当前会话缺少账户或访问令牌。');
    return;
  }

  const commonHeaders = {
    authorization: `Bearer ${accessToken}`,
    'chatgpt-account-id': accountId
  };

  // 每次重新创建 Intent,避免使用已经输出或分享过的 client_secret。
  const intentResponse = await fetch('/backend-api/payments/payment_method', {
    method: 'POST',
    credentials: 'include',
    headers: {
      ...commonHeaders,
      'content-type': 'application/json',
      'x-openai-target-path': '/backend-api/payments/payment_method',
      'x-openai-target-route': '/backend-api/payments/payment_method'
    },
    body: JSON.stringify({ account_id: accountId })
  });

  const intentData = await intentResponse.json().catch(() => ({}));
  if (!intentResponse.ok || !intentData.client_secret) {
    console.error('[绑卡] SetupIntent 创建失败:', intentResponse.status, intentData);
    return;
  }
  const clientSecret = intentData.client_secret;
  const discoveredPublishableKey = await discoverPublishableKey();

  if (!window.Stripe) {
    await new Promise((resolve, reject) => {
      const script = document.createElement('script');
      script.src = 'https://js.stripe.com/v3/';
      script.async = true;
      script.onload = resolve;
      script.onerror = () => reject(new Error('Stripe.js 加载失败'));
      document.head.appendChild(script);
    });
  }

  const { stripe, publishableKey } = await resolveStripeForIntent(
    clientSecret,
    discoveredPublishableKey
  );
  console.log('[绑卡] Stripe 公钥已通过 SetupIntent 只读校验自动匹配。');

  const overlay = document.createElement('div');
  overlay.id = '__personal_card_stripe_modal__';
  overlay.style.cssText = [
    'position:fixed', 'inset:0', 'z-index:2147483647',
    'display:flex', 'align-items:center', 'justify-content:center',
    'background:rgba(15,23,42,.62)', 'padding:18px'
  ].join(';');

  const modal = document.createElement('div');
  modal.style.cssText = [
    'width:min(560px,96vw)', 'max-height:92vh', 'overflow:auto',
    'background:#fff', 'border-radius:14px', 'padding:20px',
    'box-shadow:0 24px 70px rgba(0,0,0,.35)',
    'font:14px/1.45 system-ui,-apple-system,Segoe UI,sans-serif',
    'color:#0f172a'
  ].join(';');
  modal.innerHTML = `
    <div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:14px">
      <strong style="font-size:18px">个人账户添加支付方式</strong>
      <button id="__card_close__" type="button" style="border:0;background:#eee;border-radius:7px;padding:6px 10px;cursor:pointer">关闭</button>
    </div>
    <div style="font-size:12px;color:#64748b;margin-bottom:13px">
      卡号、有效期、CVC 和邮编由 Stripe Card Element 收集。
    </div>
    <label style="display:block;font-size:12px;font-weight:600;margin-bottom:5px">持卡人姓名</label>
    <input id="__card_name__" autocomplete="cc-name" style="box-sizing:border-box;width:100%;border:1px solid #d1d5db;border-radius:8px;padding:11px;margin-bottom:12px;font:14px system-ui" />
    <div id="__card_element__" style="border:1px solid #d1d5db;border-radius:8px;padding:13px;background:#fff"></div>
    <div id="__card_message__" style="min-height:22px;margin-top:12px;color:#b42318"></div>
    <button id="__card_submit__" type="button" style="width:100%;margin-top:8px;border:0;border-radius:9px;padding:11px;background:#0f766e;color:#fff;font-weight:700;cursor:pointer">
      确认绑定
    </button>
  `;
  overlay.appendChild(modal);
  (document.body || document.documentElement).appendChild(overlay);

  const closeButton = modal.querySelector('#__card_close__');
  const submitButton = modal.querySelector('#__card_submit__');
  const cardName = modal.querySelector('#__card_name__');
  const message = modal.querySelector('#__card_message__');
  closeButton.onclick = () => overlay.remove();
  submitButton.disabled = true;
  submitButton.style.opacity = '.55';
  submitButton.textContent = '等待卡输入框加载';

  let cardReady = false;
  let resolveCardReady;
  const cardReadyPromise = new Promise((resolve) => {
    resolveCardReady = resolve;
  });

  const elements = stripe.elements({ locale: 'zh' });
  const cardElement = elements.create('card', {
    hidePostalCode: false,
    style: {
      base: {
        color: '#0f172a',
        fontFamily: 'system-ui, -apple-system, Segoe UI, sans-serif',
        fontSize: '16px',
        '::placeholder': { color: '#94a3b8' }
      },
      invalid: { color: '#b42318' }
    }
  });
  cardElement.mount('#__card_element__');
  cardElement.on('ready', () => {
    cardReady = true;
    resolveCardReady(true);
    message.style.color = '#087443';
    message.textContent = '卡输入框已加载。';
    submitButton.disabled = false;
    submitButton.style.opacity = '1';
    submitButton.textContent = '确认绑定';
  });
  cardElement.on('loaderror', (event) => {
    cardReady = false;
    resolveCardReady(false);
    message.style.color = '#b42318';
    message.textContent = `Stripe 输入框加载失败:${event?.error?.message || 'loaderror'}`;
    console.error('[绑卡] Card Element loaderror:', event);
  });
  cardElement.on('change', (event) => {
    if (event.error) {
      message.style.color = '#b42318';
      message.textContent = event.error.message;
    } else if (event.complete) {
      message.style.color = '#087443';
      message.textContent = '卡资料填写完成,可以确认绑定。';
    } else {
      message.textContent = '';
    }
  });

  submitButton.onclick = async () => {
    submitButton.disabled = true;
    submitButton.style.opacity = '.65';
    message.style.color = '#334155';
    message.textContent = '正在验证并绑定……';

    try {
      if (!cardReady) {
        const ready = await Promise.race([
          cardReadyPromise,
          new Promise((resolve) => setTimeout(() => resolve(false), 15000))
        ]);
        if (!ready || !cardReady) {
          throw new Error('Stripe Card Element 尚未 ready;检查 js.stripe.com iframe 是否被浏览器扩展或跟踪保护拦截。');
        }
      }

      const name = cardName.value.trim();
      if (!name) throw new Error('请输入持卡人姓名。');

      const result = await stripe.confirmCardSetup(clientSecret, {
        payment_method: {
          card: cardElement,
          billing_details: { name },
          // 与原始 ChatGPT/Stripe Payment Element 请求保持一致,
          // 允许后续 Checkout/Payment Element 再次展示此支付方式。
          allow_redisplay: 'always'
        },
        // Stripe/ChatGPT 当前前端确认链路支持该参数;成功后同时设为 Customer 默认卡。
        set_as_default_payment_method: true
      });

      if (result.error) throw result.error;
      if (result.setupIntent?.status !== 'succeeded') {
        message.style.color = '#b45309';
        message.textContent = `当前状态:${result.setupIntent?.status || 'unknown'}`;
        return;
      }

      const listResponse = await fetch(
        `/backend-api/payments/payment_methods?account_id=${encodeURIComponent(accountId)}`,
        {
          credentials: 'include',
          headers: {
            ...commonHeaders,
            'x-openai-target-path': '/backend-api/payments/payment_methods',
            'x-openai-target-route': '/backend-api/payments/payment_methods'
          }
        }
      );
      const list = await listResponse.json().catch(() => ({}));
      const cards = (list.payment_methods || []).map((item) => ({
        brand: item.card?.brand || item.type,
        last4: item.card?.last4 || '',
        exp: item.card ? `${item.card.exp_month}/${item.card.exp_year}` : '',
        default: item.id === list.default_payment_method_id
      }));

      message.style.color = '#087443';
      message.textContent = '绑定成功,支付方式列表已刷新。';
      console.table(cards);
      submitButton.textContent = '绑定成功';
    } catch (error) {
      message.style.color = '#b42318';
      message.textContent = error?.message || String(error);
      console.error('[绑卡] Stripe 确认失败:', error);
    } finally {
      submitButton.disabled = false;
      submitButton.style.opacity = '1';
    }
  };
})();

5.绑卡(据说临时卡451311可以,但是我没买到),我用的是U卡,开卡费2U,有效期3年。
!!!能买到的话451311临时卡也行!!!
U卡我不放链接,公开的话玩的人多了,给这个卡玩坏了,如果实在需要,并且接受卡台的2u私信问我,我没有卡。

6.刷新页面,然后填写地址,点更新。然后再刷新页面。然后点支付。
image

7
32
登录后参与讨论。
u/udc2b6nr 广告
QuicksilverVPN

快银 VPN,一键连接全球节点,线路稳定、延迟低。支持 Windows、macOS 等多平台,TUN 全局模式覆盖全部应用流量。无需复杂配置,下载即用。

umami.dnsl.top 了解更多

32 条回复

排序
  1. locccc 💬荣誉版主 王者 王者会员 3 个月前

    佬,发帖前要排版好,别人会被ai识别垃圾信息

    0
  2. echo1 青铜 楼主 3 个月前

    第一次发没有经验,下次注意,我本来想上传附件,但是好像级别还不太够。

    0
  3. locccc 💬荣誉版主 王者 王者会员 3 个月前

    您可以发给ai,整理成md格式

    0
  4. echo1 青铜 楼主 3 个月前

    已优化调整

    0
  5. zxylxy 铂金 3 个月前

    厉害 :xhj16:

    0
  6. lisera 白银 3 个月前

    U卡分享下

    0
  7. hynize 黄金 2 YEARS 3 个月前

    厉害,支持一下

    0
  8. luthenrael 白银 3 个月前

    Its all about the card

    0
  9. waitingfor 💬 黄金 3 个月前

    骗你的,实际上推卡来的

    0
  10. echo1 青铜 楼主 3 个月前

    你可真有意思,我又没有卡,我只是分享一下经验,你看见我放任何U卡链接了吗?我上午没买到451311卡,确实拿U卡过的,这是事实啊,大家都是成年人,都有理性判断,什么是有用的什么是没用,难道自己不清楚吗?451311我明确说了也能过啊。后续这个我就是451311过的。
    image

    0
  11. waitingfor 💬 黄金 3 个月前

    你别着急呀,我没回复你呢

    0
  12. 继续这个对话 →
  13. Gwanyou 黄金 3 YEARS 3 个月前

    能在详细点么,地址什么的,和451311的购买渠道,我弄完,都是支付未批准

    0
  14. huwei 黄金 3 个月前

    还是不行

    0
  15. echo1 青铜 楼主 3 个月前

    如果是能绑定上卡,但是你的付款未被批准,首先就是是否是gmail邮箱,其次看IP,ping0.cc或者ippure.com看看是否被标记为机房,最后就是可能你的卡被别人多次利用了,N手卡了。

    0
  16. frontluo 白银 3 个月前

    强

    0
  17. Gwanyou 黄金 3 YEARS 3 个月前

    状态
    开卡成功
    兑换类型
    4513-7月27日新接口
    卡号
    4513118028732370
    有效期
    08/27
    CVV
    860
    额度
    0
    卡类型
    npc
    卡片 ID
    45131180091650140
    剩余分钟
    60

    买的451311卡头的,失败了,分享出来,你们试一试

    0
  18. xiaolu 白银 3 个月前

    貌似买的同一家的我也没有过
    状态
    已兑换
    兑换类型
    4513-7月27日新接口
    卡号
    4513118000063661
    有效期
    08/27
    CVV
    566
    额度
    0
    卡类型
    npc
    卡片 ID
    45131180519251828
    剩余分钟
    42

    0
  19. lezi-fun 钻石 水王 3 个月前

    你们买的哪一家的

    0
  20. Y_Aria 青铜 3 个月前

    我绑完刷新看不见这张绑定的卡,大家也这样吗?

    0
  21. echo1 青铜 楼主 3 个月前

    能啊。类似这样的。
    image

    0
  22. yang8u 白银 3 个月前

    不知道怎么私聊,老哥有试过大兵的绑卡能过吗

    0
  23. summer3 黄金 3 个月前

    没有CDK...

    0
  24. Aung_San 白银 3 个月前

    method please

    0
  25. 已删除 3 个月前
    这条回复已被版主删除
  26. 10_0_16_12 钻石 3 个月前

    已试,gmail提链确实比outlook稳,脚本收藏了。

    0
  27. asjmt 白银 3 个月前

    佬,我是小白,f12控制台输入脚本,这里是说,打开f12,选控制台,在最下面空白处粘贴脚本吗。请指点一下,谢谢

    0
  28. cunba 白银 3 个月前

    very good

    0
  29. YJ-XQ_Z 白银 3 个月前

    用指纹浏览器吗,还是开无痕就行,ip有什么要求吗

    0
  30. Atlantis 青铜 3 个月前

    老哥,怎么私信啊,想问下451311在哪买的

    0
  31. Freemanx 青铜 3 个月前

    My friend, can I get the U card information for payment purposes? I don't know how to send private messages to you

    0
  32. imc 青铜 3 个月前

    这个试错成本还挺高

    0
  33. yideyi 青铜 3 个月前

    提炼显示
    image
    怎么整

    0