Skip to content

Conversation

@TaprootFreak
Copy link
Contributor

Summary

  • Change TransactionUrl.invoice to accept number | string
  • Update getTransactionInvoice signature to accept number | string

Why

Pending transactions (e.g., "Warten auf Zahlung") don't have a numeric id, only a uid. This change allows fetching invoices using the uid.

Related PRs

Test plan

  • Build passes

- Change invoice URL function to accept number | string
- Update getTransactionInvoice signature to accept number | string

This allows fetching invoices using transaction uid (for pending
transactions that don't have a numeric id yet).
@TaprootFreak TaprootFreak marked this pull request as ready for review January 22, 2026 16:08
@TaprootFreak TaprootFreak merged commit 4443101 into develop Jan 22, 2026
1 check passed
@TaprootFreak TaprootFreak deleted the feat/invoice-uid-support branch January 22, 2026 16:09
TaprootFreak added a commit to DFXswiss/services that referenced this pull request Jan 22, 2026
- Change invoice button to use tx.uid instead of tx.id
- Remove hidden condition (button always visible now)
- Update isInvoiceLoading state type to string

This enables invoice download for pending transactions that don't
have a numeric id yet.

Note: Requires @dfx.swiss/react package update (DFXswiss/packages#124)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants