payme-mini-app 0.6.4 → 0.6.6

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.
@@ -74,7 +74,7 @@ dependencies {
74
74
  //noinspection GradleDynamicVersion
75
75
  implementation "com.facebook.react:react-native:+"
76
76
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
77
- implementation 'com.github.PayME-Miniapp:native-android:0.0.90'
77
+ implementation 'com.github.PayME-Miniapp:native-android:0.0.92'
78
78
  }
79
79
 
80
80
  if (isNewArchitectureEnabled()) {
@@ -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, isShowResult: data["isShowResult"] as? Bool)
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, isBackToApp: data["isBackToApp"] as? Bool,
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, description: data["description"] as? String,
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, description: data["description"] as? String,
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, description: data["description"] as? String,
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payme-mini-app",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "description": "Thư viện tích hợp PayME Miniapp",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.swift_versions = "5.0"
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
- s.dependency "PayME-Miniapp", "0.2.36"
19
+ s.dependency "PayME-Miniapp", "0.2.38"
20
20
  s.dependency "React-Core"
21
21
  s.pod_target_xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' }
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.