paypro: begin adding code for payment protocol.

This commit is contained in:
Christopher Jeffrey 2014-07-25 18:46:29 -07:00 committed by Manuel Araoz
commit f49177f0b7
3 changed files with 275 additions and 2 deletions

View file

@ -68,9 +68,10 @@ angular.module('copayApp.controllers').controller('SendController',
notification.success('Success!', message);
$scope.loadTxs();
} else {
w.sendTx(ntxid, function(txid) {
w.sendTx(ntxid, function(txid, ca) {
if (txid) {
notification.success('Transaction broadcast', 'Transaction id: ' + txid);
if (ca) notification.success('Root Certificate', ca);
} else {
notification.error('Error', 'There was an error sending the transaction.');
}