From 363e27d49366f34bb8c9558c91e4db75b13e0a41 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 12 Aug 2014 11:03:43 -0400 Subject: [PATCH] bip21: check for arg `r=` and set merchant. --- lib/BIP21.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/BIP21.js b/lib/BIP21.js index f8930a6..acdb445 100644 --- a/lib/BIP21.js +++ b/lib/BIP21.js @@ -62,6 +62,7 @@ BIP21.prototype.parse = function(uri) { for (var arg in info.query) { var val = info.query[arg]; if (arg === 'amount') val = Number(val); + if (arg === 'r') this.data.merchant = val; this.data[arg] = val; } }