Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Extract the payments redirect URL into an environment variable

vishnukvmdec258e8b2a5f
diff --git a/mobile/lib/services/billing_service.dart b/mobile/lib/services/billing_service.dart
index e9485f50c7..1d67531cc9 100644
--- a/mobile/lib/services/billing_service.dart
+++ b/mobile/lib/services/billing_service.dart
@@ -16,7 +16,11 @@ import 'package:photos/services/user_service.dart';
import 'package:photos/ui/common/web_page.dart';
import 'package:photos/utils/dialog_util.dart';
-const kWebPaymentRedirectUrl = "https://payments.ente.io/frameRedirect";
+const kWebPaymentRedirectUrl = String.fromEnvironment(
+ "web-payment-redirect",
+ defaultValue: "https://payments.ente.io/frameRedirect",
+);
+
const kWebPaymentBaseEndpoint = String.fromEnvironment(
"web-payment",
defaultValue: "https://payments.ente.io",