laravel-shop/tests
Fabian @ Blax Software 8aa727fb5e fix(ledger): count PayPal payments at their charge amount
PayPal pays into the merchant's PayPal balance, so Stripe's balance
transaction for it has amount 0 and only the fee. The ledger copied that
0, so every PayPal buyer showed no revenue. When a payment or refund
balance transaction is 0 and its charge/refund says otherwise, record the
charge's gross (net = gross - fee) and keep Stripe's own figures in meta.

syncLedgerForCharge also accepts py_ charge ids now, so PayPal payments
reach the ledger from the webhook instead of only the daily import.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 10:52:32 +02:00
..
Feature fix(ledger): count PayPal payments at their charge amount 2026-09-27 10:52:32 +02:00
Unit feat(stripe): checkout confirmation links the charge and syncs the ledger 2026-09-25 12:32:54 +02:00
TestCase.php feat(ledger): user-independent Stripe BalanceTransaction ledger + daily net stats 2026-09-03 10:01:07 +02:00
bootstrap.php I tests & structure 2025-11-29 12:05:02 +01:00