diff --git a/cashin_transport.py b/cashin_transport.py index a912180..c041f48 100644 --- a/cashin_transport.py +++ b/cashin_transport.py @@ -107,7 +107,10 @@ async def handle_create_withdraw(auth, request) -> dict: ) return { "link_id": link.id, - "lnurl": str(lnurl), + # `Lnurl.__str__` is the raw URL — wallets need the bech32 LNURL1… + # (lud01). Mirror withdraw's `_populate_lnurl` field convention. + "lnurl": str(lnurl.bech32), + "lnurl_url": str(lnurl.url), "net_sats": net_sats, "principal_sats": principal_sats, "fee_sats": fee_sats,