migrate copayApp to bitcoincom. Clean up
This commit is contained in:
parent
cf1dc66b59
commit
547b216edd
3 changed files with 8 additions and 14 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
angular
|
angular
|
||||||
.module('copayApp.services')
|
.module('bitcoincom.services')
|
||||||
.factory('sendFlowRouterService', sendFlowRouterService);
|
.factory('sendFlowRouterService', sendFlowRouterService);
|
||||||
|
|
||||||
function sendFlowRouterService(
|
function sendFlowRouterService(
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
angular
|
angular
|
||||||
.module('copayApp.services')
|
.module('bitcoincom.services')
|
||||||
.factory('sendFlowStateService', sendFlowStateService);
|
.factory('sendFlowStateService', sendFlowStateService);
|
||||||
|
|
||||||
function sendFlowStateService($log) {
|
function sendFlowStateService($log) {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
angular
|
angular
|
||||||
.module('copayApp.services')
|
.module('bitcoincom.services')
|
||||||
.factory('sendFlowService', sendFlowService);
|
.factory('sendFlowService', sendFlowService);
|
||||||
|
|
||||||
function sendFlowService(
|
function sendFlowService(
|
||||||
|
|
@ -47,12 +47,6 @@ angular
|
||||||
if (err) {
|
if (err) {
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||||
} else {
|
} else {
|
||||||
// Fill in the params
|
|
||||||
var toAddr = payProData.toAddress;
|
|
||||||
var amount = payProData.amount;
|
|
||||||
var paymentUrl = payProData.url;
|
|
||||||
var expires = payProData.expires;
|
|
||||||
var time = payProData.time;
|
|
||||||
var name = payProData.domain;
|
var name = payProData.domain;
|
||||||
|
|
||||||
// Detect some merchant that we know
|
// Detect some merchant that we know
|
||||||
|
|
@ -65,18 +59,18 @@ angular
|
||||||
// Init thirdParty
|
// Init thirdParty
|
||||||
var thirdPartyData = {
|
var thirdPartyData = {
|
||||||
id: 'bip70',
|
id: 'bip70',
|
||||||
amount: amount,
|
amount: payProData.amount,
|
||||||
caTrusted: true,
|
caTrusted: true,
|
||||||
name: name,
|
name: name,
|
||||||
domain: payProData.domain,
|
domain: payProData.domain,
|
||||||
expires: expires,
|
expires: payProData.expires,
|
||||||
memo: payProData.memo,
|
memo: payProData.memo,
|
||||||
network: 'livenet',
|
network: 'livenet',
|
||||||
requiredFeeRate: payProData.requiredFeeRate,
|
requiredFeeRate: payProData.requiredFeeRate,
|
||||||
selfSigned: 0,
|
selfSigned: 0,
|
||||||
time: time,
|
time: payProData.time,
|
||||||
toAddress: toAddr,
|
toAddress: payProData.toAddress,
|
||||||
url: paymentUrl,
|
url: payProData.url,
|
||||||
verified: true
|
verified: true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue