From 74c6d7ef5733071e7adebb895525c2e53dbdb9c5 Mon Sep 17 00:00:00 2001 From: Ox Cart Date: Wed, 11 Oct 2023 12:56:29 -0500 Subject: [PATCH] Use plan currency for Freekassa instead of system-determined currency --- .../org/getlantern/lantern/activity/FreeKassaActivity.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/kotlin/org/getlantern/lantern/activity/FreeKassaActivity.kt b/android/app/src/main/kotlin/org/getlantern/lantern/activity/FreeKassaActivity.kt index c94009378..10ebb48e8 100644 --- a/android/app/src/main/kotlin/org/getlantern/lantern/activity/FreeKassaActivity.kt +++ b/android/app/src/main/kotlin/org/getlantern/lantern/activity/FreeKassaActivity.kt @@ -196,17 +196,20 @@ open class FreeKassaActivity : BaseFragmentActivity() { } } } + + val plan = LanternApp.getSession().planByID(planID!!)!! + val currency = plan.currency val u = FreeKassa.getPayURI( merchantId, price!!, - LanternApp.getSession().currency(), + currency, planID!!, secretWordOne, LanternApp.getSession().language, userEmail!!, mapOf( "transactionid" to transactionID, - "paymentcurrency" to LanternApp.getSession().currency() + "paymentcurrency" to currency ) ) Logger.d(TAG, "freeKassa Payment URI: $u")