react-native-hyperpay-sdk 0.19.0 → 0.21.0

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.
package/ios/HyperPay.m CHANGED
@@ -35,7 +35,7 @@ RCT_EXPORT_MODULE(HyperPay)
35
35
  RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(setConfig: (NSDictionary*)options) {
36
36
  shopperResultURL=[options valueForKey:@"shopperResultURL"];
37
37
  if ([options valueForKey:@"merchantIdentifier"])
38
- shopperResultURL=[options valueForKey:@"merchantIdentifier"];
38
+ merchantIdentifier=[options valueForKey:@"merchantIdentifier"];
39
39
  if ([options valueForKey:@"countryCode"])
40
40
  countryCode=[options valueForKey:@"countryCode"];
41
41
  if ([[options valueForKey:@"mode"] isEqual:@"LiveMode"])
@@ -99,12 +99,10 @@ RCT_EXPORT_METHOD(applePay:(NSString*)checkoutID resolver:(RCTPromiseResolveBloc
99
99
  OPPPaymentProvider *provider = [OPPPaymentProvider paymentProviderWithMode:OPPProviderModeTest];
100
100
  OPPCheckoutSettings *checkoutSettings = [[OPPCheckoutSettings alloc] init];
101
101
  PKPaymentRequest *paymentRequest = [OPPPaymentProvider paymentRequestWithMerchantIdentifier:merchantIdentifier countryCode:countryCode];
102
- // paymentRequest.supportedNetworks=[@"mada",@"visa",@"masterCard"];
103
- paymentRequest.supportedNetworks = @ [PKPaymentNetworkMada,PKPaymentNetworkVisa,PKPaymentNetworkMasterCard];
104
-
105
- // paymentRequest.supportedCountries
106
- checkoutSettings.applePayPaymentRequest = paymentRequest;
107
- OPPCheckoutProvider *checkoutProvider = [OPPCheckoutProvider checkoutProviderWithPaymentProvider:provider
102
+ paymentRequest.supportedNetworks = @ [PKPaymentNetworkMada,PKPaymentNetworkVisa,PKPaymentNetworkMasterCard];
103
+ checkoutSettings.shopperResultURL=shopperResultURL;
104
+ checkoutSettings.applePayPaymentRequest = paymentRequest;
105
+ OPPCheckoutProvider *checkoutProvider = [OPPCheckoutProvider checkoutProviderWithPaymentProvider:provider
108
106
  checkoutID:checkoutID
109
107
  settings:checkoutSettings];
110
108
 
@@ -124,7 +122,7 @@ RCT_EXPORT_METHOD(applePay:(NSString*)checkoutID resolver:(RCTPromiseResolveBloc
124
122
  // Shopper was redirected to the issuer web page.
125
123
  // Request payment status when shopper returns to the app using transaction.resourcePath or just checkout id.
126
124
  } else {
127
- reject(@"applePay",@"Request payment status for the synchronous transaction from your server using transactionPath.resourcePath or just checkout id..",error);
125
+ resolve(transaction.resourcePath);
128
126
  // Request payment status for the synchronous transaction from your server using transactionPath.resourcePath or just checkout id.
129
127
  }
130
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-hyperpay-sdk",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "description": "hyperpay",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -14,5 +14,5 @@ Pod::Spec.new do |s|
14
14
  s.source_files = "ios/**/*.{h,m,mm}"
15
15
  s.dependency "React-Core"
16
16
  s.requires_arc = true
17
- s.vendored_frameworks = "ios/OPPWAMobile.xcframework","ios/ipworks3ds_sdk.xcframework"
17
+ s.vendored_frameworks = "OPPWAMobile.xcframework","ipworks3ds_sdk.xcframework"
18
18
  end
package/android/.DS_Store DELETED
Binary file
@@ -1,3 +0,0 @@
1
- # Default ignored files
2
- /shelf/
3
- /workspace.xml
Binary file