Skip to content

Build cross-chain payment initiation UI with live bridge fee estimation #390

Description

@Kingsman-99

Overview

Allow payers on Ethereum or Solana to pay a StellarSplit invoice from the app UI, without needing a Stellar wallet. Build a cross-chain payment flow that estimates bridge fees, shows the net amount, and guides the user through the bridge process.

Requirements

  • "Pay from Another Chain" button on invoice detail page
  • Chain selector: Ethereum Mainnet, Solana Mainnet
  • Live fee estimation: as user selects chain, show Bridge Fee, Net Amount Received, Estimated Time
  • "Connect MetaMask" / "Connect Phantom" wallet step (for Ethereum/Solana respectively)
  • Build and display the bridge payment request using SDK buildBridgePayment
  • Submit button triggers bridge payment → shows transaction hash + tracking link
  • Polling progress: poll bridge status and update UI until Stellar-side relay is confirmed
  • Write unit tests for the fee estimation component and chain selector

Acceptance Criteria

  • Chain selector with live fee estimation works
  • MetaMask and Phantom wallet connections work
  • Bridge payment submission calls SDK correctly
  • Progress polling updates UI until relay confirmed
  • npm run lint passes with zero errors
  • TypeScript compiles with zero errors
  • npm run build succeeds

Definition of Done

All CI checks must pass before the PR is reviewed.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions