paynl-pos-sdk-react-native 0.0.107 → 0.0.108

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.
@@ -41,10 +41,10 @@ class PayNlUtils {
41
41
  val enableOfflineProcessing = if (params.hasKey("enableOfflineProcessing")) params.getBoolean("enableOfflineProcessing") else false
42
42
  val payNlCore = if (params.hasKey("payNlCore")) getCore(params.getString("payNlCore") ?: "") else PayNlCore.MULTI
43
43
 
44
- var terminalActivationTimeouts = arrayOf<Long>(3_000, 5_000, 10_000, 20_000)
44
+ var terminalActivationTimeouts = intArrayOf(3_000, 5_000, 10_000, 20_000)
45
45
  if (params.hasKey("terminalActivationTimeouts") && !params.isNull("terminalActivationTimeouts")) {
46
46
  params.getArray("terminalActivationTimeouts")?.let {
47
- val timeouts = arrayOf<Long>()
47
+ val timeouts = IntArray(it.size())
48
48
  for (i in 0..< it.size()) {
49
49
  timeouts[i] = it.getDouble(i).toInt()
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paynl-pos-sdk-react-native",
3
- "version": "0.0.107",
3
+ "version": "0.0.108",
4
4
  "description": "A PayNL sdk to accept and process payments",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/module/index.js",