paypro: display ack memo on notification.
This commit is contained in:
parent
fb77e46111
commit
e1478fefbf
2 changed files with 7 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
message += '\nThis payment protocol transaction'
|
message += '\nThis payment protocol transaction'
|
||||||
+ ' has been verified through ' + merchantData.pr.ca + '.';
|
+ ' has been verified through ' + merchantData.pr.ca + '.';
|
||||||
}
|
}
|
||||||
|
message += '\nMessage from server: ' + merchantData.ack.memo;
|
||||||
message += '\nFor merchant: ' + merchantData.pr.pd.payment_url;
|
message += '\nFor merchant: ' + merchantData.pr.pd.payment_url;
|
||||||
}
|
}
|
||||||
notification.success('Success!', message);
|
notification.success('Success!', message);
|
||||||
|
|
@ -83,6 +84,7 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
message += '\nThis payment protocol transaction'
|
message += '\nThis payment protocol transaction'
|
||||||
+ ' has been verified through ' + merchantData.pr.ca + '.';
|
+ ' has been verified through ' + merchantData.pr.ca + '.';
|
||||||
}
|
}
|
||||||
|
message += '\nMessage from server: ' + merchantData.ack.memo;
|
||||||
message += '\nFor merchant: ' + merchantData.pr.pd.payment_url;
|
message += '\nFor merchant: ' + merchantData.pr.pd.payment_url;
|
||||||
}
|
}
|
||||||
notification.success('Transaction broadcast', message);
|
notification.success('Transaction broadcast', message);
|
||||||
|
|
@ -342,6 +344,7 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
message += '\nThis payment protocol transaction'
|
message += '\nThis payment protocol transaction'
|
||||||
+ ' has been verified through ' + merchantData.pr.ca + '.';
|
+ ' has been verified through ' + merchantData.pr.ca + '.';
|
||||||
}
|
}
|
||||||
|
message += '\nMessage from server: ' + merchantData.ack.memo;
|
||||||
message += '\nFor merchant: ' + merchantData.pr.pd.payment_url;
|
message += '\nFor merchant: ' + merchantData.pr.pd.payment_url;
|
||||||
notification.success('Transaction sent', message);
|
notification.success('Transaction sent', message);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1082,6 +1082,10 @@ Wallet.prototype.receivePaymentRequestACK = function(tx, txp, ack, cb) {
|
||||||
tx = ptx;
|
tx = ptx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
txp.merchant.ack = {
|
||||||
|
memo: memo
|
||||||
|
};
|
||||||
|
|
||||||
var txid = tx.getHash().toString('hex');
|
var txid = tx.getHash().toString('hex');
|
||||||
return cb(txid, txp.merchant);
|
return cb(txid, txp.merchant);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue