paynl-pos-sdk-react-native 0.0.85 → 0.0.87

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.115
7
+ PaynlSdkReactNative_paynlVersion=0.0.116
@@ -379,6 +379,7 @@ class PayNlUtils {
379
379
  output.putString("statusAction", value.statusAction.name)
380
380
  output.putString("mifareSerial", value.mifareSerial)
381
381
  output.putString("transactionId", value.transactionId)
382
+ output.putString("transactionGuid", value.transactionGuid)
382
383
  output.putString("payerMessage", value.payerMessage)
383
384
  output.putString("orderId", value.orderId)
384
385
  output.putString("reference", value.reference)
package/ios/PaynlSdk.mm CHANGED
@@ -86,11 +86,11 @@ RCT_EXPORT_MODULE(PaynlSdk)
86
86
  }
87
87
  }
88
88
 
89
- - (void) sendTicketViaEmail:(nonnull NSString *) email transactionId:(nonnull NSString *) transactionId ticket:(nonnull NSString *) ticket resolve:(nonnull RCTPromiseResolveBlock)resolve reject:(nonnull RCTPromiseRejectBlock)reject {
89
+ - (void)sendTicketViaEmail:(nonnull NSString *)email transactionId:(nonnull NSString *)transactionId transactionGuid:(nonnull NSString *)transactionGuid ticket:(nonnull NSString *)ticket resolve:(nonnull RCTPromiseResolveBlock)resolve reject:(nonnull RCTPromiseRejectBlock)reject {
90
90
  if (@available(iOS 17, *)) {
91
- [[PayNlPosService instance] sendTicketWithEmail:email transactionId:transactionId ticket:ticket resolve:resolve rejecter:reject];
91
+ [[PayNlPosService instance] sendTicketWithEmail:email transactionId:transactionId transactionGuid:transactionGuid ticket:ticket resolve:resolve rejecter:reject];
92
92
  } else {
93
- return;
93
+ reject(@"UNSUPPORTED", @"iOS 17 is required for the PayNL SDK", nil);
94
94
  }
95
95
  }
96
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paynl-pos-sdk-react-native",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
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",