Skip to content

Conversation

@apmcdermott
Copy link
Contributor

@apmcdermott apmcdermott commented Dec 2, 2025

Clean up paywall package and remove Coinbase Onramp integration

Summary

This PR simplifies the paywall package by removing the unified paywall in favor of network-specific paywalls (EVM and SVM), removes the Coinbase Onramp integration, and updates the build process to generate templates for all supported languages.

Changes

Paywall Architecture

  • Removed the unified paywall.ts and build.ts in favor of separate EVM and SVM paywall implementations
  • PaywallBuilder.build() now requires explicit network handlers via .withNetwork() and throws an error if none are registered
  • Removed legacy getPaywallHtml export from the package

Coinbase Onramp Removal

  • Removed cdpClientKey and sessionTokenEndpoint from PaywallConfig across TypeScript, Python, and Go
  • Deleted useOnrampSessionToken hook and utils.ts containing generateOnrampSessionToken
  • Removed "Buy USDC" button from EvmPaywall component
  • Removed WalletConnect connector from Providers (keeping injected and Coinbase Wallet only)

Cross-Language Template Generation

  • EVM and SVM build scripts now generate templates for Python (evm_paywall_template.py, svm_paywall_template.py) and Go (evm_paywall_template.go, svm_paywall_template.go)
  • Python paywall module updated to select the appropriate template based on network prefix (solana: uses SVM, others use EVM)
  • Deleted the legacy combined paywall.html template from Python

Other Improvements

  • Moved Spinner component animation to CSS stylesheet
  • Added margin to CTA container for better spacing
  • Removed component exports (EvmPaywall, SolanaPaywall) from network handler modules
  • Updated tests to remove references to deleted config options

Checklist

  • I have formatted and linted my code
  • All new and existing tests pass
  • My commits are signed (required for merge) -- you may need to rebase if you initially pushed unsigned commits

@vercel
Copy link

vercel bot commented Dec 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
x402 Ready Ready Preview Comment Dec 3, 2025 6:40pm

@apmcdermott apmcdermott merged commit 07d9350 into development-v2 Dec 4, 2025
14 checks passed
@apmcdermott apmcdermott deleted the v2-clean-up-paywall branch December 4, 2025 02:34
@phdargen phdargen mentioned this pull request Dec 4, 2025
3 tasks
CarsonRoscoe pushed a commit that referenced this pull request Dec 5, 2025
* Remove cdpClientKey and sessionTokenEndpoint from PaywallConfig

Remove Onramp functionality from EvmPaywall

Remove Coinbase fields from paywall template generation

* Migrate site to @x402/next with v2 protocol support

* Clean up tests

* remove CDP onramp from core paywall

* Update templates and build process

* Format

* Lockfile

* mock templates for CI

* Format

* Generate new templates

* Format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants