payme-mini-app 0.4.9 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -145,19 +145,11 @@ class RNPayMEMiniAppModule(reactContext: ReactApplicationContext) :
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
private fun getActionOpenMiniApp(action: String): ActionOpenMiniApp {
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
return try {
|
|
149
|
+
ActionOpenMiniApp.valueOf(action.uppercase())
|
|
150
|
+
} catch (e: Exception) {
|
|
151
|
+
ActionOpenMiniApp.PAYME
|
|
150
152
|
}
|
|
151
|
-
if (action == ActionOpenMiniApp.OPEN.toString()) {
|
|
152
|
-
return ActionOpenMiniApp.OPEN
|
|
153
|
-
}
|
|
154
|
-
if (action == ActionOpenMiniApp.PAY.toString()) {
|
|
155
|
-
return ActionOpenMiniApp.PAY
|
|
156
|
-
}
|
|
157
|
-
if (action == ActionOpenMiniApp.GET_BALANCE.toString()) {
|
|
158
|
-
return ActionOpenMiniApp.GET_BALANCE
|
|
159
|
-
}
|
|
160
|
-
return ActionOpenMiniApp.PAYME
|
|
161
153
|
}
|
|
162
154
|
|
|
163
155
|
private fun getOpenMiniAppData(
|