diff --git a/src/js/controllers/buyAmazon.js b/src/js/controllers/buyAmazon.js index a281ed342..48c502869 100644 --- a/src/js/controllers/buyAmazon.js +++ b/src/js/controllers/buyAmazon.js @@ -145,7 +145,13 @@ angular.module('copayApp.controllers').controller('buyAmazonController', functio amazonService.createBitPayInvoice(dataSrc, function(err, dataInvoice) { if (err) { ongoingProcess.set('buyingGiftCard', false, statusChangeHandler); - showError('Error creating BitPay invoice', err); + + if (err && err.message && err.message.match(/suspended/i)) { + showError('Service not available', 'Amazon Gift Card Service is not available at this moment. Please try back later.'); + } else { + showError('Could not access Gift Card Service', err); + }; + return; }