mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-24 07:07:46 +01:00
Payer metadata is a field that controls the payer ID provided during the fetchinvoice process. There are use cases where this is highly useful, such as proving that the payer has paid for the correct item. Imagine visiting a merchant's website to pay for multiple offers, where one of these offers is a default offer (with no description and no set amount). In this scenario, the merchant could claim not to have received payment for a specific item. Since the same offer may be used to fetch invoices for different products, there needs to be a way to identify which product the invoice corresponds to. With this commit, it will be possible to inject payer metadata, which helps solve the issue described above. For example, possible payer metadata could be `to_hex(b"{payer_node_id}.{product_id}.{created_at}")`. Changelog-Added: JSON-RPC: `fetchinvoice` allows setting invreq_metadata via `payer_metadata` parameter. Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com> |
||
---|---|---|
.. | ||
cln-tracer | ||
docker | ||
init | ||
keys | ||
msggen | ||
plugins | ||
pylightning | ||
pyln-client | ||
pyln-grpc-proto | ||
pyln-proto | ||
pyln-spec | ||
pyln-testing | ||
reprobuild | ||
sanitizer_suppressions | ||
bootstrap-node.sh | ||
cl-repro.sh | ||
clang-coverage-report.sh | ||
config-example | ||
giantnode.py | ||
lightning-cli.bash-completion | ||
short_channel_id-to-txid.sh | ||
startup_regtest.sh |