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.
@@ -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.5",
4
4
  "description": "Thư viện tích hợp PayME Miniapp",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",