paynl-pos-sdk-react-native 0.0.84 → 0.0.86

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.
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,mm,swift}"
18
18
  s.private_header_files = "ios/**/*.h"
19
19
 
20
- s.dependency 'PayNlPOSSdkSwift', '~> 0.0.39'
20
+ s.dependency 'PayNlPOSSdkSwift', '~> 0.0.40'
21
21
 
22
22
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
23
23
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
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.84",
3
+ "version": "0.0.86",
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",