paypro: maintain received payment requests.

This commit is contained in:
Christopher Jeffrey 2014-07-31 12:23:06 -07:00 committed by Manuel Araoz
commit af12b56678
2 changed files with 36 additions and 9 deletions

View file

@ -94,10 +94,14 @@ angular.module('copayApp.controllers').controller('SendController',
&& copay.HDPath.parseBitcoinURI(address);
if (uri && uri.merchant) {
w.createPaymentTx({
uri: uri.merchant,
memo: commentText
}, done);
var data = w.paymentRequests[uri.merchant];
if (data) {
} else {
w.createPaymentTx({
uri: uri.merchant,
memo: commentText
}, done);
}
} else {
w.createTx(address, amount, commentText, done);
}