1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

[PM-5548] Eliminate in-app purchase logic (#7433)

* Eliminate in-app purchase logic

* Remove more in-app logic found, for payment and subscription management

---------

Co-authored-by: Lotus Scott <148992878+lscottbw@users.noreply.github.com>
This commit is contained in:
Matt Bishop
2024-01-11 15:24:43 -05:00
committed by GitHub
parent cdeaa0b56a
commit 6baad76088
9 changed files with 0 additions and 100 deletions

View File

@@ -106,17 +106,6 @@ export class PaymentMethodComponent implements OnInit {
}
addCredit() {
if (this.paymentSourceInApp) {
this.dialogService.openSimpleDialog({
title: { key: "addCredit" },
content: { key: "cannotPerformInAppPurchase" },
acceptButtonText: { key: "ok" },
cancelButtonText: null,
type: "warning",
});
return;
}
this.showAddCredit = true;
}
@@ -128,18 +117,6 @@ export class PaymentMethodComponent implements OnInit {
}
changePayment() {
if (this.paymentSourceInApp) {
this.dialogService.openSimpleDialog({
title: { key: "changePaymentMethod" },
content: { key: "cannotPerformInAppPurchase" },
acceptButtonText: { key: "ok" },
cancelButtonText: null,
type: "warning",
});
return;
}
this.showAdjustPayment = true;
}
@@ -209,10 +186,6 @@ export class PaymentMethodComponent implements OnInit {
return ["bwi-bank"];
case PaymentMethodType.Check:
return ["bwi-money"];
case PaymentMethodType.AppleInApp:
return ["bwi-apple text-muted"];
case PaymentMethodType.GoogleInApp:
return ["bwi-google text-muted"];
case PaymentMethodType.PayPal:
return ["bwi-paypal text-primary"];
default:
@@ -220,14 +193,6 @@ export class PaymentMethodComponent implements OnInit {
}
}
get paymentSourceInApp() {
return (
this.paymentSource != null &&
(this.paymentSource.type === PaymentMethodType.AppleInApp ||
this.paymentSource.type === PaymentMethodType.GoogleInApp)
);
}
get subscription() {
return this.sub?.subscription ?? this.org?.subscription ?? null;
}