judokit-react-native 3.4.0 → 3.4.3
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/RNJudopay.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/reactlibrary/Extensions.kt +2 -11
- package/android/src/main/java/com/reactlibrary/Helpers.kt +2 -9
- package/ios/Classes/RNJudo.m +1 -1
- package/ios/Classes/Wrappers/RNWrappers.m +0 -1
- package/ios/Podfile +1 -1
- package/ios/Podfile.lock +7 -7
- package/ios/RNJudo.xcodeproj/project.pbxproj +2 -0
- package/package.json +1 -1
- package/types/JudoTypes.tsx +0 -1
package/RNJudopay.podspec
CHANGED
|
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
|
|
|
15
15
|
s.source_files = "ios/Classes/**/*.{h,m}"
|
|
16
16
|
s.requires_arc = true
|
|
17
17
|
s.dependency "React"
|
|
18
|
-
s.dependency "JudoKit-iOS", "3.
|
|
18
|
+
s.dependency "JudoKit-iOS", "3.1.2"
|
|
19
19
|
|
|
20
20
|
s.test_spec 'RNJudoTests' do |test_spec|
|
|
21
21
|
test_spec.source_files = 'ios/RNJudoTests/**/*.{h,m}'
|
package/android/build.gradle
CHANGED
|
@@ -101,7 +101,7 @@ dependencies {
|
|
|
101
101
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
102
102
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
|
|
103
103
|
|
|
104
|
-
implementation 'com.judopay:judokit-android:3.0.
|
|
104
|
+
implementation 'com.judopay:judokit-android:3.0.9'
|
|
105
105
|
|
|
106
106
|
//JUnit 5
|
|
107
107
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5_version"
|
|
@@ -164,16 +164,7 @@ internal val ReadableMap.cardAddressTown: String?
|
|
|
164
164
|
internal val ReadableMap.cardAddressCountryCode: Int?
|
|
165
165
|
get() {
|
|
166
166
|
if (cardAddress.hasKey("countryCode")) {
|
|
167
|
-
return cardAddress?.
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
return null
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
internal val ReadableMap.cardAddressBillingCountry: String?
|
|
174
|
-
get() {
|
|
175
|
-
if (cardAddress.hasKey("billingCountry")) {
|
|
176
|
-
return cardAddress?.getString("billingCountry")
|
|
167
|
+
return cardAddress?.getInt("countryCode")
|
|
177
168
|
}
|
|
178
169
|
|
|
179
170
|
return null
|
|
@@ -231,7 +222,7 @@ internal val ReadableMap.emailAddress: String?
|
|
|
231
222
|
internal val ReadableMap.threeDSTwoMaxTimeout: Int?
|
|
232
223
|
get() {
|
|
233
224
|
if (configuration.hasKey("threeDSTwoMaxTimeout")) {
|
|
234
|
-
return configuration?.
|
|
225
|
+
return configuration?.getInt("threeDSTwoMaxTimeout")
|
|
235
226
|
}
|
|
236
227
|
return null
|
|
237
228
|
}
|
|
@@ -147,7 +147,6 @@ internal fun getAddress(options: ReadableMap): Address? {
|
|
|
147
147
|
.setLine3(options.cardAddressLine3)
|
|
148
148
|
.setTown(options.cardAddressTown)
|
|
149
149
|
.setPostCode(options.cardAddressPostCode)
|
|
150
|
-
.setBillingCountry(options.cardAddressBillingCountry)
|
|
151
150
|
.setCountryCode(options.cardAddressCountryCode)
|
|
152
151
|
.build()
|
|
153
152
|
}
|
|
@@ -166,15 +165,9 @@ internal fun getNetworkTimeout(options: ReadableMap): NetworkTimeout? {
|
|
|
166
165
|
return null
|
|
167
166
|
}
|
|
168
167
|
|
|
169
|
-
internal fun getChallengeRequestIndicator(options: ReadableMap): ChallengeRequestIndicator? {
|
|
170
|
-
val challengeRequestIndicator = ChallengeRequestIndicator.values().firstOrNull { it.value == options.challengeRequestIndicator }
|
|
171
|
-
return challengeRequestIndicator ?: ChallengeRequestIndicator.CHALLENGE_AS_MANDATE
|
|
172
|
-
}
|
|
168
|
+
internal fun getChallengeRequestIndicator(options: ReadableMap): ChallengeRequestIndicator? = ChallengeRequestIndicator.values().firstOrNull { it.value == options.challengeRequestIndicator }
|
|
173
169
|
|
|
174
|
-
internal fun getScaExemption(options: ReadableMap): ScaExemption {
|
|
175
|
-
val scaExemption = ScaExemption.values().firstOrNull { it.value == options.scaExemption }
|
|
176
|
-
return scaExemption ?: ScaExemption.LOW_VALUE
|
|
177
|
-
}
|
|
170
|
+
internal fun getScaExemption(options: ReadableMap): ScaExemption? = ScaExemption.values().firstOrNull { it.value == options.scaExemption }
|
|
178
171
|
|
|
179
172
|
internal fun getAuthorization(options: ReadableMap): Authorization {
|
|
180
173
|
val token = options.token
|
package/ios/Classes/RNJudo.m
CHANGED
|
@@ -192,7 +192,7 @@ RCT_REMAP_METHOD(fetchTransactionDetails,
|
|
|
192
192
|
andReject:(RCTPromiseRejectBlock)reject {
|
|
193
193
|
return ^(JPResponse *response, NSError *error) {
|
|
194
194
|
if (error) {
|
|
195
|
-
if (error.code == JPError.
|
|
195
|
+
if (error.code == JPError.userDidCancelError.code) {
|
|
196
196
|
reject(kJudoPromiseRejectionCode, @"Transaction cancelled", error);
|
|
197
197
|
return;
|
|
198
198
|
}
|
|
@@ -327,7 +327,6 @@ static NSString *const kCardSchemeAMEX = @"amex";
|
|
|
327
327
|
address2:[addressDictionary optionalStringForKey:@"line2"]
|
|
328
328
|
address3:[addressDictionary optionalStringForKey:@"line3"]
|
|
329
329
|
town:[addressDictionary optionalStringForKey:@"town"]
|
|
330
|
-
billingCountry:[addressDictionary optionalStringForKey:@"billingCountry"]
|
|
331
330
|
postCode:[addressDictionary optionalStringForKey:@"postCode"]
|
|
332
331
|
countryCode:[addressDictionary optionalNumberForKey:@"countryCode"]];
|
|
333
332
|
}
|
package/ios/Podfile
CHANGED
|
@@ -19,7 +19,7 @@ target 'RNJudo' do
|
|
|
19
19
|
# use_frameworks!
|
|
20
20
|
|
|
21
21
|
# Pods for RNJudo
|
|
22
|
-
pod "JudoKit-iOS", "3.
|
|
22
|
+
pod "JudoKit-iOS", "3.1.2"
|
|
23
23
|
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
|
|
24
24
|
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
|
|
25
25
|
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
|
package/ios/Podfile.lock
CHANGED
|
@@ -21,10 +21,10 @@ PODS:
|
|
|
21
21
|
- DoubleConversion
|
|
22
22
|
- glog
|
|
23
23
|
- glog (0.3.5)
|
|
24
|
-
- Judo3DS2_iOS (1.
|
|
25
|
-
- JudoKit-iOS (3.
|
|
24
|
+
- Judo3DS2_iOS (1.1.1)
|
|
25
|
+
- JudoKit-iOS (3.1.2):
|
|
26
26
|
- DeviceDNA (~> 2.0.0)
|
|
27
|
-
- Judo3DS2_iOS (~> 1.
|
|
27
|
+
- Judo3DS2_iOS (~> 1.1.1)
|
|
28
28
|
- TrustKit
|
|
29
29
|
- ZappMerchantLib
|
|
30
30
|
- OpenSSL-Universal (1.1.1700)
|
|
@@ -236,7 +236,7 @@ DEPENDENCIES:
|
|
|
236
236
|
- FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`)
|
|
237
237
|
- Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
|
|
238
238
|
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
|
|
239
|
-
- JudoKit-iOS (= 3.
|
|
239
|
+
- JudoKit-iOS (= 3.1.2)
|
|
240
240
|
- RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
|
|
241
241
|
- RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
|
|
242
242
|
- React (from `../node_modules/react-native/`)
|
|
@@ -331,8 +331,8 @@ SPEC CHECKSUMS:
|
|
|
331
331
|
FBReactNativeSpec: 118d0d177724c2d67f08a59136eb29ef5943ec75
|
|
332
332
|
Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51
|
|
333
333
|
glog: 1f3da668190260b06b429bb211bfbee5cd790c28
|
|
334
|
-
Judo3DS2_iOS:
|
|
335
|
-
JudoKit-iOS:
|
|
334
|
+
Judo3DS2_iOS: 1699474533e69b69593c6a76b42645cb240f618a
|
|
335
|
+
JudoKit-iOS: 1c1fc609b79cef170b3f914daf152f3712c494a9
|
|
336
336
|
OpenSSL-Universal: ee0a7a25f2042782e2df405e66db3e429198e392
|
|
337
337
|
RCTRequired: b153add4da6e7dbc44aebf93f3cf4fcae392ddf1
|
|
338
338
|
RCTTypeSafety: 9aa1b91d7f9310fc6eadc3cf95126ffe818af320
|
|
@@ -357,6 +357,6 @@ SPEC CHECKSUMS:
|
|
|
357
357
|
Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b
|
|
358
358
|
ZappMerchantLib: b14bc5814840426d351190309250347ca9b0983d
|
|
359
359
|
|
|
360
|
-
PODFILE CHECKSUM:
|
|
360
|
+
PODFILE CHECKSUM: b26e88a3a3456f8ae48d5f44fe9bcd17a5a88e55
|
|
361
361
|
|
|
362
362
|
COCOAPODS: 1.11.3
|
|
@@ -380,6 +380,7 @@
|
|
|
380
380
|
"${PODS_ROOT}/Target Support Files/Pods-RNJudo-RNJudoTests/Pods-RNJudo-RNJudoTests-resources.sh",
|
|
381
381
|
"${PODS_ROOT}/JudoKit-iOS/Resources/icons.bundle",
|
|
382
382
|
"${PODS_ROOT}/JudoKit-iOS/Resources/resources.bundle",
|
|
383
|
+
"${PODS_ROOT}/JudoKit-iOS/Resources/CountriesList.json",
|
|
383
384
|
"${PODS_CONFIGURATION_BUILD_DIR}/JudoKit-iOS/JudoKit_iOS.bundle",
|
|
384
385
|
"${PODS_CONFIGURATION_BUILD_DIR}/ZappMerchantLib/ZappMerchantLibResources.bundle",
|
|
385
386
|
);
|
|
@@ -387,6 +388,7 @@
|
|
|
387
388
|
outputPaths = (
|
|
388
389
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/icons.bundle",
|
|
389
390
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/resources.bundle",
|
|
391
|
+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/CountriesList.json",
|
|
390
392
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/JudoKit_iOS.bundle",
|
|
391
393
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ZappMerchantLibResources.bundle",
|
|
392
394
|
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "judokit-react-native",
|
|
3
3
|
"title": "Judopay React Native Module",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.3",
|
|
5
5
|
"description": "A React Native module for the Judopay native SDKs to take payments on iOS and Android.",
|
|
6
6
|
"main": "JudoPay.tsx",
|
|
7
7
|
"scripts": {
|