Commit 172e3b3
fix inverted transaction status logic
Fixed critical bug where payment and request transaction logic was inverted.
Payments were incorrectly staying in pending status instead of completing,
while requests were being marked complete immediately on creation.
Changed createTransaction condition from isRequestTransaction() to isPayment()
to correctly process payments (debit/credit/complete) versus requests (pending).
All unit tests now passing.
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent afd619e commit 172e3b3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
| 549 | + | |
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| |||
0 commit comments