diff --git a/src/app/accounts/premium.component.html b/src/app/accounts/premium.component.html index f8be3bc7..a30a1bb7 100644 --- a/src/app/accounts/premium.component.html +++ b/src/app/accounts/premium.component.html @@ -55,9 +55,9 @@ [disabled]="purchaseBtn.loading" [appApiAction]="purchasePromise"> {{'premiumPurchase' | i18n}} -
diff --git a/src/app/accounts/premium.component.ts b/src/app/accounts/premium.component.ts index 7cb9a956..63f1a2dd 100644 --- a/src/app/accounts/premium.component.ts +++ b/src/app/accounts/premium.component.ts @@ -73,9 +73,11 @@ export class PremiumComponent extends BasePremiumComponent { break; case 'failed': // tslint:disable-next-line - console.log(`Failed to purchase ${payment.productIdentifier}.` + + console.log(`Failed to purchase ${payment.productIdentifier}. ` + `${transaction.errorCode} = ${transaction.errorMessage}`); - this.platformUtilsService.showToast('error', null, transaction.errorMessage); + if (transaction.errorCode !== 2) { + this.platformUtilsService.showToast('error', null, transaction.errorMessage); + } // Finish the transaction. remote.inAppPurchase.finishTransactionByDate(transaction.transactionDate); break; diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index 10f10263..c3d95db1 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -983,9 +983,6 @@ "premiumPurchase": { "message": "Purchase Premium" }, - "premiumRestore": { - "message": "Restore Premium" - }, "premiumPurchaseAlert": { "message": "You can purchase premium membership on the bitwarden.com web vault. Do you want to visit the website now?" }, @@ -1254,5 +1251,8 @@ }, "premiumUpdated": { "message": "You've upgraded to premium." + }, + "restore": { + "message": "Restore" } }