Ver código fonte

Extract the payments redirect URL into an environment variable

vishnukvmd 1 ano atrás
pai
commit
ec258e8b2a
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      mobile/lib/services/billing_service.dart

+ 5 - 1
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",