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 +6 -8
- package/package.json +1 -1
- 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
|
@@ -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
|
-
|
|
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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
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
|
@@ -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
|