diff --git a/src/js/controllers/buyAmazon.js b/src/js/controllers/buyAmazon.js index 10b87619d..8e56a5ef4 100644 --- a/src/js/controllers/buyAmazon.js +++ b/src/js/controllers/buyAmazon.js @@ -278,8 +278,13 @@ angular.module('copayApp.controllers').controller('buyAmazonController', functio amount = data.stateParams.amount; currency = data.stateParams.currency; - if (amount > 1000) { - showErrorAndBack(null, gettextCatalog.getString('Purchase Amount is limited to USD 1000 per day')); + $scope.limitPerDayMessage = gettextCatalog.getString('Purchase Amount is limited to {{limitPerDay}} {{currency}} per day', { + limitPerDay: amazonService.limitPerDay, + currency: currency + }); + + if (amount > amazonService.limitPerDay) { + showErrorAndBack(null, $scope.limitPerDayMessage); return; } diff --git a/src/js/services/amazonService.js b/src/js/services/amazonService.js index c0dee597e..54d119c55 100644 --- a/src/js/services/amazonService.js +++ b/src/js/services/amazonService.js @@ -3,6 +3,8 @@ angular.module('copayApp.services').factory('amazonService', function($http, $lo var root = {}; var credentials = {}; + root.limitPerDay = 1000; + /* * Development: 'testnet' * Production: 'livenet' diff --git a/www/views/buyAmazon.html b/www/views/buyAmazon.html index 75d19d502..6fbe3690e 100644 --- a/www/views/buyAmazon.html +++ b/www/views/buyAmazon.html @@ -18,8 +18,8 @@
{{amountUnitStr}}
-
- Purchase Amount is limited to USD 1000 per day +
+ {{limitPerDayMessage}}