-
Notifications
You must be signed in to change notification settings - Fork 564
[SDK] Respect feePayer property in Payment widgets #7533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SDK] Respect feePayer property in Payment widgets #7533
Conversation
🦋 Changeset detectedLatest commit: 26abea8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
""" WalkthroughThe changes refactor how the Changes
Sequence Diagram(s)sequenceDiagram
participant BridgeOrchestrator
participant QuoteLoader
participant PaymentWidgetLogic
participant PayEmbed
participant CheckoutWidget
BridgeOrchestrator->>QuoteLoader: Pass uiOptions (includes mode, feePayer)
QuoteLoader->>QuoteLoader: Extract mode, feePayer from uiOptions
QuoteLoader->>PaymentWidgetLogic: Process payment with correct feePayer logic
PayEmbed->>CheckoutWidget: Pass feePayer if mode == "direct_payment"
Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes were found. Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (3)
🧰 Additional context used📓 Path-based instructions (1)`**/*.{ts,tsx}`: Write idiomatic TypeScript with explicit function declarations ...
📄 Source: CodeRabbit Inference Engine (CLAUDE.md) List of files the instruction was applied to:
🧠 Learnings (2)📓 Common learnings
packages/thirdweb/src/react/web/ui/PayEmbed.tsx (5)
🔇 Additional comments (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
565b67d
to
7d8e1d2
Compare
7d8e1d2
to
26abea8
Compare
size-limit report 📦
|
Fixes #7518
PR-Codex overview
This PR focuses on enhancing payment widget functionality by properly respecting the
feePayer
property and incorporatinguiOptions
into various components for better payment handling.Detailed summary
PayEmbed.tsx
to setfeePayer
based onprops.payOptions.paymentInfo.feePayer
.uiOptions
prop toBridgeOrchestrator
.QuoteLoader
to acceptuiOptions
and derivefeePayer
andmode
from it.Summary by CodeRabbit
Bug Fixes
feePayer
setting, ensuring accurate fee handling during transactions.Refactor