Skip to content

hotfix(p2p): return payment_hash for internal transfers - #125

Merged
helloscoopa merged 1 commit into
mainfrom
rr/collect-payment-hash
Nov 20, 2026
Merged

helloscoopa merged 1 commit into
mainfrom
rr/collect-payment-hash

Conversation

@rayaanr

@rayaanr rayaanr commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Why

The DCA backend needs to know which row in a user's /api/v1/usertransactions is the transfer that paid a sale's collect request, so the app lists the sale once. Matching by memo broke when collect memos got wrapped (💰 Collect by … Memo: …).

What

  • toTransferResponse now sets payment_hash for internal transfers too: the hash of the invoice the send paid (InternalPaymentHash), the same payment_hash as the transfer's usertransactions row. Shows up in /p2p/send, /p2p/transfers/{id} and a collect request's transfer.
  • TestTransferResponse checks it; docs/p2p-api.md documents it.

Notes

@helloscoopa
helloscoopa changed the base branch from dev to main November 20, 2026 07:42
@helloscoopa
helloscoopa changed the base branch from main to dev November 20, 2026 07:43
@rayaanr
rayaanr force-pushed the rr/collect-payment-hash branch from 4011b8c to f85891d Compare November 20, 2026 07:44
@rayaanr rayaanr changed the title feat(p2p): return payment_hash for internal transfers hotfix(p2p): return payment_hash for internal transfers Nov 20, 2026
@rayaanr
rayaanr changed the base branch from dev to main November 20, 2026 07:44
@helloscoopa
helloscoopa merged commit 99eaa83 into main Nov 20, 2026
@helloscoopa
helloscoopa deleted the rr/collect-payment-hash branch November 20, 2026 07:45
xbuddhi added a commit that referenced this pull request Nov 25, 2026
chore: sync main-only commits to dev (#125, #126, #226 test cleanup)
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