copay/js/controllers/uriPayment.js

15 lines
382 B
JavaScript
Raw Normal View History

2014-07-01 15:35:15 -07:00
'use strict';
var bitcore = require('bitcore');
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);
$rootScope.pendingPayment = new bitcore.BIP21($routeParams.data);
$timeout(function() {
$location.path('/open');
}, 1000);
2014-07-01 15:35:15 -07:00
});