Skip to content

fix: attach MPP credentials with mppx - #324

Merged
stevekaliski-stripe merged 1 commit into
stripe:mainfrom
brendanjryan:brendanjryan/mppx-attach-credentials
Sep 14, 2026
Merged

stevekaliski-stripe merged 1 commit into
stripe:mainfrom
brendanjryan:brendanjryan/mppx-attach-credentials

Conversation

@brendanjryan

Copy link
Copy Markdown
Contributor

Motivation

MPP challenges can select a credential header other than Authorization. The CLI should rely on mppx transport behavior instead of duplicating attachment logic.

Summary

  • Prepare the selected payment with mppx
  • Create and attach the credential through the prepared payment API
  • Honor challenge-selected credential headers

Key design considerations

  • Keep request execution and redirect refusal unchanged
  • Remove the custom transport and manual authorization mutation

@brendanjryan
brendanjryan requested a review from a team as a code owner September 14, 2026 00:51
return Mppx.create({
methods: [stripeCharge, stripeSession],
polyfill: false,
transport: Transport.from<RequestInit, Response>({

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we can remove this custom transport now that we have preparePayment

https://mpp.dev/sdk/typescript/client/Mppx.preparePayment

@stevekaliski-stripe
stevekaliski-stripe merged commit 2258014 into stripe:main Sep 14, 2026
2 checks passed
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.

2 participants