payme-mini-app 0.4.10 → 0.4.11
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.
|
@@ -82,7 +82,7 @@ class RNPayMEMiniAppModule(reactContext: ReactApplicationContext) :
|
|
|
82
82
|
}
|
|
83
83
|
var paymentData: PaymentData? = null
|
|
84
84
|
var additionalData: DepositWithdrawTransferData? = null
|
|
85
|
-
if (amount != null && transactionId != null && action
|
|
85
|
+
if (amount != null && transactionId != null && action == "PAY") {
|
|
86
86
|
paymentData = PaymentData(transactionId, amount, note, ipnUrl)
|
|
87
87
|
}
|
|
88
88
|
if (action == "DEPOSIT" || action == "WITHDRAW" || action == "TRANSFER") {
|
|
@@ -162,7 +162,7 @@ class RNPayMEMiniAppModule(reactContext: ReactApplicationContext) :
|
|
|
162
162
|
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.OPEN) {
|
|
163
163
|
return OpenMiniAppOpenData(phone)
|
|
164
164
|
}
|
|
165
|
-
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.PAY) {
|
|
165
|
+
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.PAY && paymentData != null) {
|
|
166
166
|
return OpenMiniAppPaymentData(phone, paymentData!!)
|
|
167
167
|
}
|
|
168
168
|
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.PAYME) {
|
|
@@ -171,16 +171,16 @@ class RNPayMEMiniAppModule(reactContext: ReactApplicationContext) :
|
|
|
171
171
|
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.KYC) {
|
|
172
172
|
return OpenMiniAppKYCData(phone)
|
|
173
173
|
}
|
|
174
|
-
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.DEPOSIT) {
|
|
174
|
+
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.DEPOSIT && additionalData != null) {
|
|
175
175
|
return OpenMiniAppDepositData(phone, additionalData!!)
|
|
176
176
|
}
|
|
177
|
-
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.WITHDRAW) {
|
|
177
|
+
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.WITHDRAW && additionalData != null) {
|
|
178
178
|
return OpenMiniAppWithdrawData(phone, additionalData!!)
|
|
179
179
|
}
|
|
180
|
-
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.TRANSFER) {
|
|
180
|
+
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.TRANSFER && additionalData != null) {
|
|
181
181
|
return OpenMiniAppTransferData(phone, additionalData!!)
|
|
182
182
|
}
|
|
183
|
-
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.SERVICE) {
|
|
183
|
+
if (getActionOpenMiniApp(action) == ActionOpenMiniApp.SERVICE && service != null) {
|
|
184
184
|
return OpenMiniAppServiceData(phone, service!!)
|
|
185
185
|
}
|
|
186
186
|
return OpenMiniAppPayMEData()
|