paypro: deal with cached payment requests properly.

This commit is contained in:
Christopher Jeffrey 2014-07-31 12:31:14 -07:00 committed by Manuel Araoz
commit decd981bce
3 changed files with 16 additions and 15 deletions

View file

@ -94,8 +94,12 @@ angular.module('copayApp.controllers').controller('SendController',
&& copay.HDPath.parseBitcoinURI(address);
if (uri && uri.merchant) {
var data = w.paymentRequests[uri.merchant];
if (data) {
var req = w.paymentRequests[uri.merchant];
if (req) {
if (commentText) {
req.options.memo = commentText;
}
w.receivePaymentRequest(req.options, req.pr, done);
} else {
w.createPaymentTx({
uri: uri.merchant,