Receive page: QR code bug fix for invalid payment ids

This commit is contained in:
Tim L 2017-12-11 13:44:03 -05:00
parent 7e801642c2
commit b73bcdf4b9

View file

@ -80,8 +80,8 @@ Rectangle {
s += (nfields++ ? "&" : "?") s += (nfields++ ? "&" : "?")
s += "tx_amount=" + amount s += "tx_amount=" + amount
} }
var pid = paymentIdLine.text.trim() var pid = paymentIdLine.text.trim().toLowerCase()
if (pid !== "") { if (pid !== "" && walletManager.paymentIdValid(pid)) {
s += (nfields++ ? "&" : "?") s += (nfields++ ? "&" : "?")
s += "tx_payment_id=" + pid s += "tx_payment_id=" + pid
} }