Skip to content

fix: move x402Url from PaymentLink to Checkout type#11

Open
PancheI wants to merge 1 commit intomainfrom
fix/x402url-move-to-sessions
Open

fix: move x402Url from PaymentLink to Checkout type#11
PancheI wants to merge 1 commit intomainfrom
fix/x402url-move-to-sessions

Conversation

@PancheI
Copy link
Contributor

@PancheI PancheI commented Mar 19, 2026

Summary

  • Remove x402Url from PaymentLink interface (templates can't be paid directly)
  • Add x402Url to Checkout interface (sessions are the payable resource)
  • Update README to document x402Url on checkouts instead of payment links

Why

Payment links are reusable templates. Checkout sessions are the actual payable resource. x402Url only makes sense on sessions where AI agents can discover payment requirements and pay via the x402 protocol.

Test plan

  • Build passes (turbo build)
  • All tests pass (turbo test)
  • PaymentLink type no longer has x402Url
  • Checkout type now has x402Url

Aligns SDK types with server change - x402Url is now returned
on checkout sessions (the payable resource), not payment links
(templates).

- Remove x402Url from PaymentLink interface
- Add x402Url to Checkout interface
- Update README to document x402Url on checkouts
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