2014-07-01 15:35:15 -07:00
|
|
|
'use strict';
|
|
|
|
|
2014-08-13 11:10:37 -07:00
|
|
|
var bitcore = require('bitcore');
|
|
|
|
|
2014-07-02 13:35:37 -07:00
|
|
|
angular.module('copayApp.controllers').controller('UriPaymentController', function($rootScope, $scope, $routeParams, $timeout, $location) {
|
2014-07-01 15:49:05 -07:00
|
|
|
var data = decodeURIComponent($routeParams.data);
|
2014-08-13 11:10:37 -07:00
|
|
|
$rootScope.pendingPayment = new bitcore.BIP21($routeParams.data);
|
2014-07-02 13:35:37 -07:00
|
|
|
|
|
|
|
$timeout(function() {
|
2014-08-13 11:10:37 -07:00
|
|
|
$location.path('/open');
|
2014-07-02 13:35:37 -07:00
|
|
|
}, 1000);
|
|
|
|
|
|
|
|
|
2014-07-01 15:35:15 -07:00
|
|
|
});
|