react-native-hyperpay-sdk 0.18.0 → 0.20.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 +4 -5
- package/package.json +2 -2
- package/react-native-hyperpay-sdk.podspec +1 -1
- package/android/.DS_Store +0 -0
- package/android/.idea/.gitignore +0 -3
- package/android/libs/.DS_Store +0 -0
- package/ipworks3ds_sdk.xcframework/.DS_Store +0 -0
- package/ipworks3ds_sdk.xcframework/ios-arm64_armv7/.DS_Store +0 -0
- package/ipworks3ds_sdk.xcframework/ios-arm64_i386_x86_64-simulator/.DS_Store +0 -0
package/ios/HyperPay.m
CHANGED
|
@@ -18,10 +18,7 @@ RCT_EXPORT_MODULE(HyperPay)
|
|
|
18
18
|
|
|
19
19
|
self = [super init];
|
|
20
20
|
if (self) {
|
|
21
|
-
if ([mode isEqual:@"TestMode"])
|
|
22
21
|
provider = [OPPPaymentProvider paymentProviderWithMode:OPPProviderModeTest];
|
|
23
|
-
else
|
|
24
|
-
provider = [OPPPaymentProvider paymentProviderWithMode:OPPProviderModeLive];
|
|
25
22
|
}
|
|
26
23
|
return self;
|
|
27
24
|
}
|
|
@@ -41,8 +38,10 @@ RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(setConfig: (NSDictionary*)options) {
|
|
|
41
38
|
shopperResultURL=[options valueForKey:@"merchantIdentifier"];
|
|
42
39
|
if ([options valueForKey:@"countryCode"])
|
|
43
40
|
countryCode=[options valueForKey:@"countryCode"];
|
|
44
|
-
if ([options valueForKey:@"mode"])
|
|
45
|
-
|
|
41
|
+
if ([[options valueForKey:@"mode"] isEqual:@"LiveMode"])
|
|
42
|
+
provider = [OPPPaymentProvider paymentProviderWithMode:OPPProviderModeLive];
|
|
43
|
+
else
|
|
44
|
+
provider = [OPPPaymentProvider paymentProviderWithMode:OPPProviderModeTest];
|
|
46
45
|
return options;
|
|
47
46
|
}
|
|
48
47
|
|
package/package.json
CHANGED
|
@@ -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 = "
|
|
17
|
+
s.vendored_frameworks = "OPPWAMobile.xcframework","ipworks3ds_sdk.xcframework"
|
|
18
18
|
end
|
package/android/.DS_Store
DELETED
|
Binary file
|
package/android/.idea/.gitignore
DELETED
package/android/libs/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|