Skip to content

feat: show payout preview before payment confirmation #95

Description

@MarcusDavidG

Summary

Before a payer signs a payment transaction, show them the exact per-recipient breakdown using previewPayout(invoiceId, amount).

Design

  • On the /pay/[id] page, after the payer enters an amount, call previewPayout and show a breakdown table: Recipient | Amount | Token
  • Display while the payer reviews before clicking confirm
  • Uses the same dust-correct rounding logic as the contract

Acceptance criteria

  • Breakdown visible before signing on /pay/[id]
  • Updates live as amount input changes (debounced)
  • Handles split rules (Fixed, Percentage, Tiered) correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmediumStandard feature or bug fix (150 pts)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions