Skip to content

feat: payment links#266

Merged
tmm merged 29 commits intomainfrom
tmm/payment-links
Apr 1, 2026
Merged

feat: payment links#266
tmm merged 29 commits intomainfrom
tmm/payment-links

Conversation

@tmm
Copy link
Copy Markdown
Member

@tmm tmm commented Mar 31, 2026

Adds experimental support for payment links. Every tempo.charge()/stripe.charge() resource gets automatic payment page when rendered in browser (Accept text/html). This could be extended to other methods in the future.

@socket-security
Copy link
Copy Markdown

socket-security bot commented Mar 31, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​playwright/​test@​1.58.210010010099100
Added@​stripe/​stripe-js@​8.9.010010010099100

View full report

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 31, 2026

Open in StackBlitz

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

commit: 0fc9f38

@tmm tmm force-pushed the tmm/payment-links branch from abe4120 to e7d2bb7 Compare March 31, 2026 05:17
@tmm tmm force-pushed the tmm/payment-links branch from 6b387d4 to d66ed3e Compare March 31, 2026 05:32
if (options.html && input.headers.get('Accept')?.includes('text/html')) {
headers['Content-Type'] = 'text/html; charset=utf-8'
const html = String.raw
return html`<!doctype html>
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

follow up PR will handle theming, etc. want to land this first.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍

@tmm tmm merged commit 2a7dbd3 into main Apr 1, 2026
8 checks passed
@tmm tmm deleted the tmm/payment-links branch April 1, 2026 05:51
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