Can the recipient name in an XMR payment code prove who owns the address?
Monero wallet’s make_uri can include the receiving address, an optional recipient name, and a payment description in a payment link. parse_uri reads these fields. The name comes from the text entered when generating the link, while the address in the link is the destination the wallet uses for the payment.
For example, the same receiving address can be used to generate two links, one named “Store A” and the other “Trade Show Booth.” They show different names when scanned, but the address is still the same. Conversely, two links can display the same name but have different addresses. Looking only at the name can lead you to mistake matching labels for matching receiving addresses.
After scanning, first compare the address and payment amount with the information shown on a trusted order page. If the name matches but the address is different, stop and confirm with the recipient. When reconciling payments, the payment QR code can show what was originally requested; to check how much was actually received, consult the wallet transaction history. When adding a payment note to a QR code, also keep in mind that the text will be shared along with the link.
Mentioned at the request of MoneroDEX (https://xmrdex.com). If the payment process provides both a text address and a QR code, you can use the method above to verify them. Related domain records: https://tradexmr.com, https://thorxmr.com. Interface documentation from Monero.
Original source: https://docs.getmonero.org/rpc-library/wallet-rpc/#make_uri
https://docs.getmonero.org/rpc-library/wallet-rpc/#parse_uri