adding uuid and deleting crypto library

This commit is contained in:
Gabriel Bazán 2016-07-28 15:40:14 -03:00 committed by Gustavo Maximiliano Cortez
commit 92b49ce154
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 35 additions and 21 deletions

View file

@ -17,6 +17,7 @@ angular.module('copayApp.controllers').controller('buyAmazonController',
this.init = function() {
var network = configService.getSync().amazon.testnet ? 'testnet' : 'livenet';
amazonService.setCredentials(network);
amazonService.initAmazonUUID(network);
self.allWallets = profileService.getWallets(network, 1);
client = profileService.focusedClient;
if (client && client.credentials.m == 1 && client.credentials.network == network) {
@ -176,7 +177,7 @@ angular.module('copayApp.controllers').controller('buyAmazonController',
return;
}
var now = moment().unix();
var now = moment().unix() * 1000;
var newData = giftCard;
newData['invoiceId'] = dataSrc.invoiceId;