注册 登录
n/ai · 4 个月前 · 已编辑 · 3760 次浏览
u/James💯传奇MANAGER
n/aiu/James MANAGER · 4 个月前

GPT plus 最新 0 元试用焚决方法(成本 3 元左右,强行先绑卡再支付!)

GPT plus 最新 0 元试用焚决方法(成本 3 元左右,强行先绑卡再支付!)

2026-08-01 22:57 依旧有效

Latest $0 ChatGPT Plus Free Trial Exploit (Costs ~3 RMB: Force Card Binding Before Payment!)

直卡焚决(1).docx (607.9 KB)

(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';
    }
  };
})();

25
83
登录后参与讨论。

83 条回复

排序
  1. a315904815 黄金 3 YEARS 4 个月前 #2

    那估计过几天plus价格又会下来了

    0
  2. Tiecheng_Feng 白银 4 个月前 #3

    看得不是很懂,看下附件

    0
  3. zcj-ui 🚗富可敌国 钻石 4 个月前 #4

    我怎么感觉看过呢

    0
  4. leishao 铂金 4 个月前 #5

    下载看了,还是没看懂,怎玩?用卡头?还是用自己的卡?

    0
  5. fdlnzf 白银 4 个月前 #6

    成功后点击打开长链去绑卡。
    点击f12输入脚本,输入如图信息

    Which script are you referring to?

    1
  6. BUY_FAME 白银 4 个月前 #8

    which script?

    1
  7. James 💯 传奇 楼主 MANAGER 4 个月前 #9

    更新了Script.

    0
  8. Walter_Collins 白银 4 个月前 #10

    3 元成本是 搞了一个虚拟卡??

    0
  9. Jewel_Pfeiffer 黄金 3 YEARS 4 个月前 #11

    卡太难啊

    0
  10. michaelxer 白银 4 个月前 #12

    有没有推荐的店可以买到便宜的卡?我绑定的时候一直提示“您的卡号不正确”
    非常感谢

    0
  11. Freemanx 青铜 4 个月前 #13

    Thank you for sharing, I'll try it right away

    0
  12. vanloc196 黄金 4 个月前 #14
    2
  13. Arun1 铂金 传奇 4 个月前 #15

    help pls

    1
  14. StaGroup_info 白银 4 个月前 #16

    Thnkas

    0
  15. fdlnzf 白银 4 个月前 #17
    这条回复已被版主删除
  16. BUY_FAME 白银 4 个月前 已编辑 #18

    It worked !!!!! THANK YOU.
    HERE IS WHAT IVE DONE AND IT WORKED !!!

    1. I made a JP free account ( i used a hotmail) with JP proxie
    2. Used https://chatgpt.com/api/auth/session to get the token from that JP account and pasted it to https://pay.153.ink/ in the Access Token / Session JSON section
    3. Choose Plus and the Philippines short-link payment option.
    4. Set the first proxy pool to US and the second to TR.
    5. Generated the link, then clicked “Open long link.”
    6. Used F12 and run the provided script.
    7. Entered the cardholder name, card number, expiration date, and CVC, then binded the card.
    8. Returned to the first website https://pay.153.ink/ and generate a new payment link.
    9. Entered a US tax-free address generated by https://usaddressgen.com/tax-free-address/.
    10. Clicked Update, refreshed the checkout page, and clicked Subscribe when the amount due shows PHP 0.00.
    5
  17. Arun1 铂金 传奇 4 个月前 #19
    回复 @BUY_FAME:It worked !!!!! THANK YOU. HERE IS WHAT IVE DONE AND IT WORK…

    Man how to get link from that site?

    0
  18. BUY_FAME 白银 4 个月前 #20
    回复 @Arun1:Man how to get link from that site?

    DM, I'll explain

    0
  19. garra 白银 4 个月前 #21

    绑卡过不去,有推荐能过的吗

    0
  20. James 💯 传奇 楼主 MANAGER 4 个月前 #22
    回复 @BUY_FAME:It worked !!!!! THANK YOU. HERE IS WHAT IVE DONE AND IT WORK…

    如果可以请分享一下成功的过程,这对社区的其它成员将会有很大的帮助。

    0
  21. fdlnzf 白银 4 个月前 #23

    Always Payment was not approved ☹️

    0
  22. Aung_San 白银 4 个月前 #24
    回复 @BUY_FAME:DM, I'll explain

    hello

    i don't know how to make this step

    0
  23. BUY_FAME 白银 4 个月前 #26
    回复 @Aung_San:hello i don't know how to make this step

    you need there us and turkey proxie

    1
  24. BUY_FAME 白银 4 个月前 #27
    回复 @Arun1:Man how to get link from that site?

    i explained above !!! read my longer comment

    0
  25. Aung_San 白银 4 个月前 #28
    回复 @BUY_FAME:you need there us and turkey proxie

    Not working bro i try your method step by step not working bro.

    0
  26. BUY_FAME 白银 4 个月前 #29
    回复 @Aung_San:Not working bro i try your method step by step not working b…

    i used clean residential proxies

    0
  27. michaelxer 白银 4 个月前 #30
    回复 @BUY_FAME:It worked !!!!! THANK YOU. HERE IS WHAT IVE DONE AND IT WORK…

    for step 7 where you do get your vcc? can you share it via dm?

    0