mirror of https://github.com/BTCPrivate/copay.git
Added a link to test payment protocol
This commit is contained in:
parent
6286789f4d
commit
e39959b4a4
|
@ -11,6 +11,8 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($rootScope.fromEmailConfirmation) {
|
if ($rootScope.fromEmailConfirmation) {
|
||||||
$scope.confirmedEmail = true;
|
$scope.confirmedEmail = true;
|
||||||
$rootScope.fromEmailConfirmation = false;
|
$rootScope.fromEmailConfirmation = false;
|
||||||
|
@ -29,6 +31,18 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
||||||
identityService.open($scope, form);
|
identityService.open($scope, form);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO erase this function
|
||||||
|
$scope.setPayment = function() {
|
||||||
|
$rootScope.pendingPayment = {
|
||||||
|
"data": {
|
||||||
|
"amount": 20.3,
|
||||||
|
"label": "Luke-Jr",
|
||||||
|
"message": "Hola chango?"
|
||||||
|
},
|
||||||
|
"address": "175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
function getParam(sname) {
|
function getParam(sname) {
|
||||||
var params = location.search.substr(location.search.indexOf("?") + 1);
|
var params = location.search.substr(location.search.indexOf("?") + 1);
|
||||||
var sval = "";
|
var sval = "";
|
||||||
|
|
|
@ -9,6 +9,12 @@
|
||||||
<img src="img/logo-negative-beta.svg" alt="Copay" width="146" height="59">
|
<img src="img/logo-negative-beta.svg" alt="Copay" width="146" height="59">
|
||||||
<div ng-include="'views/includes/version.html'"></div>
|
<div ng-include="'views/includes/version.html'"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<a class="text-gray" translate ng-click="setPayment()">
|
||||||
|
Test payment
|
||||||
|
</a>
|
||||||
|
|
||||||
<div class="p10 box-setup bg-success m10b text-white" ng-show="pendingPayment">
|
<div class="p10 box-setup bg-success m10b text-white" ng-show="pendingPayment">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<i class="size-36 m10r"></i>
|
<i class="size-36 m10r"></i>
|
||||||
|
|
Loading…
Reference in New Issue