paypro: deal with cached payment requests properly.
This commit is contained in:
parent
af12b56678
commit
decd981bce
3 changed files with 16 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue