Skip to content

Replace Meta-Scraper with Lucci Pay for native ChatGPT payments - #6

Closed
natalie-a-1 wants to merge 1 commit into
mainfrom
codex/lucci-pay-chatgpt
Closed

natalie-a-1 wants to merge 1 commit into
mainfrom
codex/lucci-pay-chatgpt

Conversation

@natalie-a-1

@natalie-a-1 natalie-a-1 commented Sep 8, 2026 •

Copy link
Copy Markdown
Owner

Closed without merging: this PR was opened in the wrong repository. The replacement is now in https://github.com/lucci-xyz/launch/pull/2.

Purpose

Replace the Meta-Scraper VS Code extension with Lucci Pay, a new ChatGPT payment-request app. Participating apps create a request, the buyer reviews the merchant and exact total, then confirms through ChatGPT’s native payment sheet. Apple Pay is requested as a supported method.

Changes

  • Remove the extension, metadata-processing dependency, image assets, old tests and publishing material; retain the MIT license.
  • Add a compact Wallet-inspired React review sheet, explicit demo confirmation, decline/retry/cancel states, and authoritative receipts.
  • Add the MCP Apps bridge and documented window.openai.requestCheckout / complete_checkout integration, with no external checkout fallback or embedded card-entry form.
  • Add an authenticated merchant request/status API, OAuth resource-server validation, payer/merchant isolation, immutable server totals, durable SQLite attempts, and a Stripe shared-payment-token adapter.
  • Protect retries with stable provider idempotency keys, preserve uncertain payment state, reject mismatched provider receipts, and prevent stale UI results from replacing paid state.
  • Include runnable demo/client examples, setup and integration docs, source references, and CI.

Platform constraints and pilot scope

This is a draft for a native-checkout pilot, not a launched universal payments service. OpenAI documents native checkout as a private beta for selected marketplaces. Its schema includes Apple Pay, but actual availability depends on the enabled host, PSP, account and device.

General commerce approval currently covers physical goods. The first API supports pre-priced physical-goods pickup orders; arbitrary plugin subscriptions, digital credits and service fees are not enabled. Other apps must integrate explicitly and establish a trusted payer-account mapping. No universal cross-plugin interception or automatic charging is claimed.

Real testing needs OpenAI/PSP enablement, registered merchants, an OAuth identity provider, and Stripe test credentials. Configuration flags do not grant access. See docs/platform-limits.md and docs/integration.md.

Validation

  • npm run check passes: TypeScript, 22 tests, self-contained widget build and compiled server.
  • HTTP/MCP client integration exercises discovery, resources, request review, demo payment and receipt retrieval.
  • Native-tool contract, signed JWT, provider request/receipt, concurrency, recovery and stale-state tests pass with test doubles.
  • git diff --check passes.
  • Browser policy blocked local preview navigation, so visual/mobile review is not verified.
  • No real ChatGPT native sheet, Apple Pay, 3DS, Stripe settlement or public deployment was exercised.

Run

npm ci
npm run dev

Open http://localhost:4242/preview. Demo payments are clearly labeled and move no money.

References: OpenAI checkout API, UI guide, plugin guidelines, Stripe SPTs.

@natalie-a-1 natalie-a-1 closed this Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant