payme-mini-app 1.1.6-beta.1 → 1.1.7

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.
@@ -76,6 +76,6 @@ def kotlin_version = getExtOrDefault("kotlinVersion")
76
76
  dependencies {
77
77
  implementation "com.facebook.react:react-android"
78
78
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
79
- implementation 'com.github.PayME-Miniapp:native-android:0.5.7'
79
+ implementation 'com.github.PayME-Miniapp:native-android:0.6.1'
80
80
  }
81
81
 
@@ -268,6 +268,9 @@ class PaymeMiniAppModule(reactContext: ReactApplicationContext) :
268
268
  if (env == ENV.SANDBOX.toString()) {
269
269
  return ENV.SANDBOX
270
270
  }
271
+ if (env == ENV.STAGING.toString()) {
272
+ return ENV.STAGING
273
+ }
271
274
  if (env == ENV.PRODUCTION.toString()) {
272
275
  return ENV.PRODUCTION
273
276
  }
@@ -12,7 +12,7 @@ class PaymeMiniApp: RCTEventEmitter, PayMEDelegate {
12
12
  ) {
13
13
  DispatchQueue.main.sync {
14
14
  PayMEConfig.instance.setMode(mode ?? "miniapp_product")
15
- PayMEConfig.instance.env = (env == "SANDBOX") ? .sbx : .prod
15
+ PayMEConfig.instance.env = (env == "SANDBOX") ? .sbx : (env == "STAGING") ? .staging : .prod
16
16
  self.payme = PayME(key: PayMEKey(appId: appId, publicKey: publicKey, privateKey: privateKey))
17
17
  PayMEConfig.instance.locale = (locale == "en") ? .en : .vi
18
18
  self.payme.delegate = self
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payme-mini-app",
3
- "version": "1.1.6-beta.1",
3
+ "version": "1.1.7",
4
4
  "description": "Thư viện tích hợp PayME Miniapp",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",