payme-mini-app 0.6.4 → 0.6.5
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.
- package/ios/RNPayMEMiniApp.swift +13 -6
- package/package.json +1 -1
package/ios/RNPayMEMiniApp.swift
CHANGED
|
@@ -44,31 +44,38 @@ class RNPayMEMiniApp: RCTEventEmitter, PayMEDelegate {
|
|
|
44
44
|
return PayMEPaymentParam(
|
|
45
45
|
amount: data["amount"] as! Int, transactionId: data["transactionId"] as! String,
|
|
46
46
|
note: data["note"] as? String, ipnUrl: data["ipnUrl"] as? String,
|
|
47
|
+
extraData: data["extraData"] as? [String: Any],
|
|
47
48
|
isShowResult: data["isShowResult"] as? Bool)
|
|
48
49
|
case "PAYMENT":
|
|
49
50
|
return PayMEPaymentDirectParam(
|
|
50
|
-
transaction: data["transaction"] as! String,
|
|
51
|
+
transaction: data["transaction"] as! String,
|
|
52
|
+
extraData: data["extraData"] as? [String: Any],
|
|
53
|
+
isShowResult: data["isShowResult"] as? Bool)
|
|
51
54
|
case "TRANSFER_QR":
|
|
52
55
|
return PayMETransferQRParam(
|
|
53
56
|
amount: data["amount"] as! Int, swiftCode: data["swiftCode"] as! String,
|
|
54
57
|
bankNumber: data["bankNumber"] as! String, cardHolder: data["cardHolder"] as! String,
|
|
55
|
-
note: data["note"] as? String,
|
|
58
|
+
note: data["note"] as? String, extraData: data["extraData"] as? [String: Any],
|
|
56
59
|
isShowResult: data["isShowResult"] as? Bool)
|
|
57
60
|
case "SERVICE":
|
|
58
61
|
return PayMEServiceParam(
|
|
59
|
-
service: data["service"] as! String,
|
|
62
|
+
service: data["service"] as! String, extraData: data["extraData"] as? [String: Any],
|
|
63
|
+
isBackToApp: data["isBackToApp"] as? Bool,
|
|
60
64
|
isShowResult: data["isShowResult"] as? Bool)
|
|
61
65
|
case "DEPOSIT":
|
|
62
66
|
return PayMEPayParam(
|
|
63
|
-
amount: data["amount"] as? Int,
|
|
67
|
+
amount: data["amount"] as? Int, extraData: data["extraData"] as? [String: Any],
|
|
68
|
+
description: data["description"] as? String,
|
|
64
69
|
isBackToApp: data["isBackToApp"] as? Bool, isShowResult: data["isShowResult"] as? Bool)
|
|
65
70
|
case "WITHDRAW":
|
|
66
71
|
return PayMEPayParam(
|
|
67
|
-
amount: data["amount"] as? Int,
|
|
72
|
+
amount: data["amount"] as? Int, extraData: data["extraData"] as? [String: Any],
|
|
73
|
+
description: data["description"] as? String,
|
|
68
74
|
isBackToApp: data["isBackToApp"] as? Bool, isShowResult: data["isShowResult"] as? Bool)
|
|
69
75
|
case "TRANSFER":
|
|
70
76
|
return PayMEPayParam(
|
|
71
|
-
amount: data["amount"] as? Int,
|
|
77
|
+
amount: data["amount"] as? Int, extraData: data["extraData"] as? [String: Any],
|
|
78
|
+
description: data["description"] as? String,
|
|
72
79
|
isBackToApp: data["isBackToApp"] as? Bool, isShowResult: data["isShowResult"] as? Bool)
|
|
73
80
|
default: fatalError("Invalid action!")
|
|
74
81
|
}
|