From 36d5adc445b15f40b41084ed7e6c43b81f67782c Mon Sep 17 00:00:00 2001 From: atavism Date: Wed, 15 Nov 2023 04:13:25 -0800 Subject: [PATCH] Add check isPlayVersion --- .../main/kotlin/org/getlantern/lantern/util/PaymentsUtil.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/org/getlantern/lantern/util/PaymentsUtil.kt b/android/app/src/main/kotlin/org/getlantern/lantern/util/PaymentsUtil.kt index 9e106a4cf..7fbffd12f 100644 --- a/android/app/src/main/kotlin/org/getlantern/lantern/util/PaymentsUtil.kt +++ b/android/app/src/main/kotlin/org/getlantern/lantern/util/PaymentsUtil.kt @@ -270,7 +270,8 @@ class PaymentsUtil(private val activity: Activity) { json.addProperty("provider", provider.toString().lowercase()) json.addProperty("email", email) json.addProperty("plan", planID) - if (currency != null && currency != "") { + val isPlayVersion = LanternApp.getSession().isPlayVersion() + if (isPlayVersion && currency != null && currency != "") { val plan = "${planID}-${currency}" json.addProperty("plan", plan) }