From 826e739a4378bfe13cf954b568d08faefd136978 Mon Sep 17 00:00:00 2001 From: Victor Kabata Date: Fri, 14 Jun 2024 16:41:49 +0300 Subject: [PATCH] Set daraja env in desktop sample --- .../com/vickikbt/app_desktop/ui/screens/home/HomeScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app-desktop/src/main/java/com/vickikbt/app_desktop/ui/screens/home/HomeScreen.kt b/app-desktop/src/main/java/com/vickikbt/app_desktop/ui/screens/home/HomeScreen.kt index 2b5db3b7..b92c5fa3 100644 --- a/app-desktop/src/main/java/com/vickikbt/app_desktop/ui/screens/home/HomeScreen.kt +++ b/app-desktop/src/main/java/com/vickikbt/app_desktop/ui/screens/home/HomeScreen.kt @@ -43,6 +43,7 @@ import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import com.vickbt.darajakmp.Daraja +import com.vickbt.darajakmp.utils.DarajaEnvironment import com.vickbt.darajakmp.utils.onFailure import com.vickbt.darajakmp.utils.onSuccess import com.vickikbt.app_android.ui.theme.DarajaKmpTheme @@ -59,7 +60,7 @@ fun HomeScreen() { .setConsumerKey("zg1m1CbMGx8E2BqVThHIJHFMWSnVJ4XA") .setConsumerSecret("z4CAY2TUw6rprEvy") .setPassKey("bfb279f9aa9bdbcf158e97dd71a467cd2e0c893059b10f78e6b72ada1ed2c919") - .isSandbox() + .setEnvironment(environment = DarajaEnvironment.SANDBOX_ENVIRONMENT) .build() ) }