paypro: more server info in validation.
This commit is contained in:
parent
295f3a144a
commit
5105fd4229
1 changed files with 18 additions and 4 deletions
|
|
@ -33,13 +33,22 @@ angular.module('copayApp.directives')
|
|||
.element(document)
|
||||
.find('section')
|
||||
.find('p')[1]);
|
||||
tamount.attr('class', tamount.attr('class').replace(' hidden', ''))
|
||||
tamount.text(total + ' (CA: Internet Widgets Pty Ltd)')
|
||||
tamount.attr('class',
|
||||
tamount.attr('class').replace(' hidden', ''));
|
||||
tamount.text(total
|
||||
+ ' (CA: Internet Widgets Pty Ltd. Expires: '
|
||||
+ new Date().toISOString()
|
||||
+ '): Hi, we\'d like some bitcoin.');
|
||||
|
||||
scope.wallet.createPaymentTx(uri.merchant, function(ntxid, ca) {
|
||||
var txp = scope.wallet.txProposals.txps[ntxid];
|
||||
if (!txp) return;
|
||||
|
||||
var expires = txp.merchant.pr.expires;
|
||||
var memo = txp.merchant.pr.memo;
|
||||
var payment_url = txp.merchant.pr.payment_url;
|
||||
var total = txp.merchant.total;
|
||||
|
||||
var total = bitcore
|
||||
.bignum.fromBuffer(txp.merchant.total)
|
||||
.div(config.unitToSatoshi)
|
||||
|
|
@ -56,9 +65,14 @@ angular.module('copayApp.directives')
|
|||
.element(document)
|
||||
.find('section')
|
||||
.find('p')[1]);
|
||||
tamount.attr('class', tamount.attr('class').replace(' hidden', ''))
|
||||
tamount.text(total + ' (CA: ' + ca + ')')
|
||||
tamount.attr('class',
|
||||
tamount.attr('class').replace(' hidden', ''))
|
||||
tamount.text(total + ' (CA: ' + ca
|
||||
+ '. Expires: '
|
||||
+ new Date(expires * 1000).toISOString()
|
||||
+ '): ' + memo);
|
||||
});
|
||||
|
||||
ctrl.$setValidity('validAddress', true);
|
||||
return 'Merchant: '+ uri.merchant;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue