* Improve error response on testnet facilitator
* feat: improve error handling and smart wallet support
Add undeployed smart wallet detection, enhance error messages across SDK/facilitator/paywall, restrict site facilitator to base-sepolia and solana-devnet testnets
* Add unit tests
* Use magic bytest constant and add tests
* Update template
* Format
* Update comment
* Don't check for 6492; just check for length of signature
* Update templates
* feat: improve error handling in payment verification
Changes:
- Updated useFacilitator verify() and settle() to parse and return
detailed error messages from facilitator JSON responses
- Added try-catch around verify() call in Next.js middleware to handle
thrown errors and return proper 402 JSON responses
- Prevents 500 HTML error pages, now returns clean 402 JSON responses
Future work:
- v2: Preserve semantic HTTP status codes (400 for validation errors,
402 for payment errors) for better API semantics
* Python pricing example WIP
* Update readme
* Update types, format
* Simplify, don't use http exception shape
* Fix bug where python pkg would set empty fields to nil instead of omitting entirely
* Update readmes, appease linter
* Fix bug where we always try to settle w/ the first payment requirement in the list
* Fix network filtering bug-- settle was always using the first one in the list
* Fix same payment requirements list bug in python example
* Add notes about the client network filter
* Add custom payment selector to the other python client as well
* use json5 for md formatting
* Din't need to recreate util
* Create find_matching_payment_requirements util in python
* Update middlewares, tests
* WIP python paywall
* Add paywall config
* Fix type errors, add flask to project deps
* Pydantic v2.10 doesn't support serialize_by_alias as a config option
* clean up middlewares
* That was unnecessarily complicated
* per pydantic: use instead of on Python < 3.12
* Update paywall to full html file, update path
* Allow users to pass in custom HTML as a string for their paywall
* Validate supported networks
* Don't use type in middleware, but do verify
* Minify paywall html during build process
* Add example that uses new python paywall
* Update env to be mainnet in mainnet example
* Add flask and fastapi fullstack examples
* Correct types
* Update paywall html
* Hide balance on paywall
* Format
* ADd proper logging to fastapi middleware
* Escape strings and guard against prototype pollution
* Automatically copy the paywall file over to the python directory
* Update example lockfiles
* Update python tests
* Update paywall template build steps so python matches TS
* Format and lint
* feat: added facilitator config
* initial
* working towards downgrading pydantic
* fix: first mainnet call
* feat: updated cdp-sdk version in example to prod