Skip to content

feat: add request-aware payment preparation - #893

Open
brendanjryan wants to merge 2 commits into
mainfrom
brendanjryan/request-aware-preparation
Open

feat: add request-aware payment preparation#893
brendanjryan wants to merge 2 commits into
mainfrom
brendanjryan/request-aware-preparation

Conversation

@brendanjryan

Copy link
Copy Markdown
Collaborator

Motivation

Callers that inspect a payment challenge before credential creation need the exact effective request that produced it, including safe pre-payment redirects.

Summary

  • Add prepareRequest for request-bound HTTP payment preparation
  • Preserve the effective request, 402 response, and redirect history
  • Add a pinned pay operation that attaches credentials through the selected transport

Key design considerations

  • Follow redirects only before credentials exist
  • Strip sensitive headers across origins and reject HTTPS downgrades
  • Send credential-bearing requests with manual redirect handling

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-14T00:59:36.444154Z 7c2fa81 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Sep 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@893

commit: dadc164

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7c2fa815e1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/client/Mppx.ts
Comment thread src/client/Mppx.ts Outdated
Comment thread src/client/Mppx.ts Outdated
Comment thread src/client/Mppx.ts Outdated
Comment thread src/client/Mppx.ts Outdated
Comment thread src/client/Mppx.ts Outdated
Comment thread src/client/Mppx.ts Outdated
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