[MNY-343] Add checkout widget iframe (#8578)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the `CheckoutWidget` and related components in the `thirdweb` application, including the removal of duplicate fiat price displays, adding new environment constants, and refining query parameter parsing for improved functionality and usability. ### Detailed summary - Removed duplicate fiat price display in `CheckoutWidget`. - Added `NEXT_PUBLIC_CHECKOUT_IFRAME_CLIENT_ID` constant. - Introduced `parseQueryParams` utility for better query handling. - Updated `CheckoutWidgetEmbed` to utilize new constants and improved query parsing. - Added validation for required parameters in the checkout page. - Refactored currency validation to use `isValidCurrency`. - Modified tests to skip certain cases based on environment variables. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Embeddable checkout widget with a dedicated checkout page/layout and a new public env var for iframe client ID. * Content-Security-Policy headers applied to checkout widget routes. * **Bug Fixes** * Removed duplicate fiat price display in the checkout button. * **Chores / Refactor** * Centralized query-parameter parsing and currency validation; added input sanitization utilities. * Added a patch-level changeset entry. * **Tests** * Marked several integration tests as skipped by default; enabled one parallel-execution test. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"thirdweb": patch
|
||||
---
|
||||
|
||||
Remove fiat price shown in the button in `CheckoutWidget` to avoid showing it twice in the UI.
|
||||
Reference in New Issue
Block a user