Repository navigation
fix: honor callback settings for withdrawal webhooks - #82
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Withdraw webhooks to an explicitly approved local receiver, such as
http://localhost:8500, currently fail withUnsafeHttpDestinationErrorafter the withdrawal has already been paid. This is the failure in the extensions integration job.Match Pay Links' callback handling: pass an exact administrator-approved origin as
private_endpoint, and honorlnbits_callback_allow_private_ipswhen no explicit endpoint applies. Wildcard rules do not grant a loopback exception. Keep core destination checks, disabled redirects, and empty webhook response metadata. URL parsing and client setup failures are recorded as webhook failures without interrupting a paid withdrawal.Validation: the new regression cases reproduced the failure before the change. All 27 tests pass, covering IPv4/IPv6 local receivers, the private-IP setting, origin boundaries, metadata/self-target rejection, redirects, malformed URLs, and existing payload handling. Black, Ruff, Mypy, Pyright, and Prettier checks pass.
This fixes Withdraw's implementation; the extensions registry will need a release containing it before its integration job can consume the change.