paypro: add more notifications.

This commit is contained in:
Christopher Jeffrey 2014-08-07 11:29:09 -07:00 committed by Manuel Araoz
commit 92c0b69d35

View file

@ -27,6 +27,9 @@ angular.module('copayApp.directives')
return value;
}
notification.info('Fetching Payment',
'Retrieving Payment Request from ' + uri.merchant);
// Payment Protocol URI (BIP-72)
scope.wallet.fetchPaymentTx(uri.merchant, function(err, merchantData) {
var balance = $rootScope.availableBalance;
@ -51,6 +54,10 @@ angular.module('copayApp.directives')
// XXX There needs to be a better way to do this:
total = +total / config.unitToSatoshi;
notification.info('Payment Request',
'Server is requesting ' + total + ' ' + config.unitName + '.\n'
+ 'Message: ' + memo);
// XXX Pretty much all of this code accesses the raw DOM. It's
// very bad, there's probably a better, more angular-y way to
// do things here.