mirror of
https://github.com/lnbits/lnbits.git
synced 2026-08-17 13:16:11 +02:00
POST /api/v1/payments accepts a `webhook` field, but on the outgoing branch (out: true) the value was silently discarded: the route did not forward it, pay_invoice() had no parameter for it, and the CreatePayment it builds left the field unset. Callers got a 200, webhook_status stayed null, and no request was ever sent. The rest was already in place. CreatePayment.webhook exists, apipayments already stores webhook and webhook_status for outgoing rows, and the dispatch path is direction agnostic: _pay_external_invoice and _pay_internal_invoice both call _send_payment_notification_in_background, and send_payment_notification ends with a dispatch_webhook call gated on payment.webhook. The only reason an outgoing payment never fired a webhook is that payment.webhook was always None. Closes #4112. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_admin_api.py | ||
| test_api.py | ||
| test_asset_api.py | ||
| test_audit_api.py | ||
| test_auth.py | ||
| test_auth_api.py | ||
| test_callback_api.py | ||
| test_extension_api.py | ||
| test_extensions_builder_api.py | ||
| test_fiat_api.py | ||
| test_generic.py | ||
| test_lnurl_api.py | ||
| test_node_api.py | ||
| test_payment_api.py | ||
| test_tinyurl_api.py | ||
| test_user_api.py | ||
| test_users.py | ||
| test_wallet_api.py | ||
| test_webpush_api.py | ||
| test_websocket_api.py | ||