payme-mini-app 0.4.28 → 0.5.0

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.
@@ -43,16 +43,20 @@ class RNPayMEMiniApp: RCTEventEmitter, PayMEDelegate {
43
43
  case "PAYMENT":
44
44
  return PayMEPaymentDirectParam(transaction: data["transaction"] as! String)
45
45
  case "SERVICE":
46
- return PayMEServiceParam(service: data["service"] as! String)
46
+ return PayMEServiceParam(
47
+ service: data["service"] as! String, isBackToApp: data["isBackToApp"] as? Bool)
47
48
  case "DEPOSIT":
48
49
  return PayMEPayParam(
49
- amount: data["amount"] as? Int, description: data["description"] as? String)
50
+ amount: data["amount"] as? Int, description: data["description"] as? String,
51
+ isBackToApp: data["isBackToApp"] as? Bool)
50
52
  case "WITHDRAW":
51
53
  return PayMEPayParam(
52
- amount: data["amount"] as? Int, description: data["description"] as? String)
54
+ amount: data["amount"] as? Int, description: data["description"] as? String,
55
+ isBackToApp: data["isBackToApp"] as? Bool)
53
56
  case "TRANSFER":
54
57
  return PayMEPayParam(
55
- amount: data["amount"] as? Int, description: data["description"] as? String)
58
+ amount: data["amount"] as? Int, description: data["description"] as? String,
59
+ isBackToApp: data["isBackToApp"] as? Bool)
56
60
  default: fatalError("Invalid action!")
57
61
  }
58
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payme-mini-app",
3
- "version": "0.4.28",
3
+ "version": "0.5.0",
4
4
  "description": "Thư viện tích hợp PayME Miniapp",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",