paynl-pos-sdk-react-native 0.0.34 → 0.0.36

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.
@@ -4,4 +4,4 @@ PaynlSdkReactNative_targetSdkVersion=34
4
4
  PaynlSdkReactNative_compileSdkVersion=35
5
5
  PaynlSdkReactNative_ndkVersion=27.1.12297006
6
6
  PaynlSdkReactNative_paynlPackage=sdk.softpos
7
- PaynlSdkReactNative_paynlVersion=0.0.62
7
+ PaynlSdkReactNative_paynlVersion=0.0.63
@@ -33,7 +33,7 @@ import PayNlPOSSdkSwift
33
33
  return
34
34
  }
35
35
 
36
- reject("FAILED_TO_GET_ACTIVATION_CODE", "Failed to get activation code \(error)", error)
36
+ reject("SV-0000", "UNKNOWN ERROR", PayNlSVError.UNEXPECTED_ERROR(reason: error.localizedDescription))
37
37
  }
38
38
  }
39
39
  }
@@ -73,7 +73,7 @@ import PayNlPOSSdkSwift
73
73
  return
74
74
  }
75
75
 
76
- reject("FAILED_TO_LOGIN", "Failed to login: \(error)", error)
76
+ reject("SV-0000", "UNKNOWN ERROR", PayNlSVError.UNEXPECTED_ERROR(reason: error.localizedDescription))
77
77
  }
78
78
  }
79
79
  }
@@ -89,7 +89,7 @@ import PayNlPOSSdkSwift
89
89
  return
90
90
  }
91
91
 
92
- reject("FAILED_TO_LOGIN", "Failed to login: \(error)", error)
92
+ reject("SV-0000", "UNKNOWN ERROR", PayNlSVError.UNEXPECTED_ERROR(reason: error.localizedDescription))
93
93
  }
94
94
  }
95
95
  }
@@ -120,7 +120,7 @@ import PayNlPOSSdkSwift
120
120
  return
121
121
  }
122
122
 
123
- reject("FAILED_TO_START_TRANSACTION", "Failed to startTransaction: \(error)", error)
123
+ reject("SV-0000", "UNKNOWN ERROR", PayNlSVError.UNEXPECTED_ERROR(reason: error.localizedDescription))
124
124
  }
125
125
  }
126
126
  }
@@ -177,7 +177,7 @@ import PayNlPOSSdkSwift
177
177
  return
178
178
  }
179
179
 
180
- reject("FAILED_TO_SEND_LOGS", "Failed to sendLogs: \(error)", error)
180
+ reject("SV-0000", "UNKNOWN ERROR", PayNlSVError.UNEXPECTED_ERROR(reason: error.localizedDescription))
181
181
  }
182
182
  }
183
183
  }
@@ -197,7 +197,7 @@ import PayNlPOSSdkSwift
197
197
  return
198
198
  }
199
199
 
200
- reject("FAILED_TO_SEND_LOGS", "Failed to sendLogs: \(error)", error)
200
+ reject("SV-0000", "UNKNOWN ERROR", PayNlSVError.UNEXPECTED_ERROR(reason: error.localizedDescription))
201
201
  }
202
202
  }
203
203
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paynl-pos-sdk-react-native",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "description": "A PayNL sdk to accept and process payments",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",