paypro: add more notifications.
This commit is contained in:
parent
fe2118fcbe
commit
92c0b69d35
1 changed files with 7 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue