iamport-react-native 2.0.15 → 3.0.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/CHANGELOG.md +7 -0
- package/README.md +12 -2
- package/lib/commonjs/components/Certification/index.js +69 -69
- package/lib/commonjs/components/Certification/index.js.map +1 -1
- package/lib/commonjs/components/ErrorOnParams/index.js +10 -9
- package/lib/commonjs/components/ErrorOnParams/index.js.map +1 -1
- package/lib/commonjs/components/Loading/index.js +10 -9
- package/lib/commonjs/components/Loading/index.js.map +1 -1
- package/lib/commonjs/components/Payment/index.js +91 -92
- package/lib/commonjs/components/Payment/index.js.map +1 -1
- package/lib/commonjs/constants/index.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/styles.js.map +1 -1
- package/lib/commonjs/utils/IamportUrl.js +48 -29
- package/lib/commonjs/utils/IamportUrl.js.map +1 -1
- package/lib/commonjs/utils/Validation.js +1 -2
- package/lib/commonjs/utils/Validation.js.map +1 -1
- package/lib/commonjs/utils/ValidationForPayment.js.map +1 -1
- package/lib/module/components/Certification/index.js +75 -72
- package/lib/module/components/Certification/index.js.map +1 -1
- package/lib/module/components/ErrorOnParams/index.js +13 -9
- package/lib/module/components/ErrorOnParams/index.js.map +1 -1
- package/lib/module/components/Loading/index.js +13 -9
- package/lib/module/components/Loading/index.js.map +1 -1
- package/lib/module/components/Payment/index.js +95 -93
- package/lib/module/components/Payment/index.js.map +1 -1
- package/lib/module/constants/index.js +2 -0
- package/lib/module/constants/index.js.map +1 -1
- package/lib/module/index.js +6 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/styles.js +2 -0
- package/lib/module/styles.js.map +1 -1
- package/lib/module/utils/IamportUrl.js +51 -29
- package/lib/module/utils/IamportUrl.js.map +1 -1
- package/lib/module/utils/Validation.js +3 -2
- package/lib/module/utils/Validation.js.map +1 -1
- package/lib/module/utils/ValidationForPayment.js +4 -2
- package/lib/module/utils/ValidationForPayment.js.map +1 -1
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/{components → src/components}/Certification/index.d.ts +1 -2
- package/lib/typescript/src/components/Certification/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ErrorOnParams/index.d.ts +6 -0
- package/lib/typescript/src/components/ErrorOnParams/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Loading/index.d.ts +3 -0
- package/lib/typescript/src/components/Loading/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/Payment/index.d.ts +1 -2
- package/lib/typescript/src/components/Payment/index.d.ts.map +1 -0
- package/lib/typescript/src/constants/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/{styles.d.ts → src/styles.d.ts} +2 -2
- package/lib/typescript/src/styles.d.ts.map +1 -0
- package/lib/typescript/{utils → src/utils}/IamportUrl.d.ts +8 -7
- package/lib/typescript/src/utils/IamportUrl.d.ts.map +1 -0
- package/lib/typescript/src/utils/Validation.d.ts.map +1 -0
- package/lib/typescript/src/utils/ValidationForPayment.d.ts.map +1 -0
- package/package.json +91 -64
- package/src/components/Certification/index.tsx +7 -7
- package/src/components/ErrorOnParams/index.tsx +1 -2
- package/src/components/Loading/index.tsx +1 -2
- package/src/components/Payment/index.tsx +6 -6
- package/src/utils/IamportUrl.ts +54 -26
- package/.circleci/config.yml +0 -98
- package/.editorconfig +0 -15
- package/.gitattributes +0 -3
- package/.gitignore +0 -69
- package/.yarnrc +0 -3
- package/.yarnrc.yml +0 -1
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +0 -128
- package/android/gradle.properties +0 -4
- package/android/src/main/AndroidManifest.xml +0 -4
- package/android/src/main/java/com/iamportreactnative/IamportReactNativePackage.kt +0 -17
- package/android/src/main/java/com/iamportreactnative/IamportReactNativeViewManager.kt +0 -20
- package/babel.config.js +0 -3
- package/example/.gitignore +0 -69
- package/example/README.md +0 -44
- package/example/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/example/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
- package/example/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
- package/example/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/example/android/.gradle/7.5.1/dependencies-accessors/gc.properties +0 -0
- package/example/android/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
- package/example/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
- package/example/android/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
- package/example/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/example/android/.gradle/7.5.1/gc.properties +0 -0
- package/example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/example/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/example/android/.gradle/vcs-1/gc.properties +0 -0
- package/example/android/app/build.gradle +0 -183
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/proguard-rules.pro +0 -10
- package/example/android/app/src/debug/AndroidManifest.xml +0 -8
- package/example/android/app/src/debug/java/com/example/iamportreactnative/ReactNativeFlipper.java +0 -69
- package/example/android/app/src/main/AndroidManifest.xml +0 -34
- package/example/android/app/src/main/java/com/example/iamportreactnative/MainActivity.java +0 -15
- package/example/android/app/src/main/java/com/example/iamportreactnative/MainApplication.java +0 -80
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/values/strings.xml +0 -3
- package/example/android/app/src/main/res/values/styles.xml +0 -9
- package/example/android/build.gradle +0 -21
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -6
- package/example/android/gradle.properties +0 -44
- package/example/android/gradlew +0 -183
- package/example/android/gradlew.bat +0 -103
- package/example/android/settings.gradle +0 -9
- package/example/app.json +0 -4
- package/example/babel.config.js +0 -11
- package/example/index.js +0 -5
- package/example/ios/File.swift +0 -8
- package/example/ios/Gemfile +0 -7
- package/example/ios/Gemfile.lock +0 -99
- package/example/ios/IamportReactNativeExample/AppDelegate.h +0 -15
- package/example/ios/IamportReactNativeExample/AppDelegate.mm +0 -138
- package/example/ios/IamportReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/example/ios/IamportReactNativeExample/Images.xcassets/Contents.json +0 -6
- package/example/ios/IamportReactNativeExample/Info.plist +0 -121
- package/example/ios/IamportReactNativeExample/LaunchScreen.storyboard +0 -58
- package/example/ios/IamportReactNativeExample/main.m +0 -16
- package/example/ios/IamportReactNativeExample-Bridging-Header.h +0 -3
- package/example/ios/IamportReactNativeExample.xcodeproj/project.pbxproj +0 -969
- package/example/ios/IamportReactNativeExample.xcodeproj/xcshareddata/xcschemes/IamportReactNativeExample.xcscheme +0 -99
- package/example/ios/IamportReactNativeExample.xcworkspace/contents.xcworkspacedata +0 -10
- package/example/ios/IamportReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/example/ios/Podfile +0 -57
- package/example/ios/Podfile.lock +0 -756
- package/example/metro.config.js +0 -66
- package/example/package.json +0 -40
- package/example/src/App.tsx +0 -17
- package/example/src/Certification/index.tsx +0 -30
- package/example/src/CertificationResult/index.tsx +0 -79
- package/example/src/CertificationTest/index.tsx +0 -214
- package/example/src/Home/index.tsx +0 -87
- package/example/src/Loading/index.tsx +0 -12
- package/example/src/NavigationService.tsx +0 -127
- package/example/src/Payment/index.tsx +0 -28
- package/example/src/PaymentResult/index.tsx +0 -96
- package/example/src/PaymentTest/index.tsx +0 -383
- package/example/src/Picker/index.tsx +0 -60
- package/example/src/constants.ts +0 -274
- package/example/src/utils.ts +0 -83
- package/example/yarn.lock +0 -7358
- package/exampleForExpo/.buckconfig +0 -6
- package/exampleForExpo/.expo/README.md +0 -8
- package/exampleForExpo/.expo/devices.json +0 -3
- package/exampleForExpo/.gitattributes +0 -1
- package/exampleForExpo/.gitignore +0 -125
- package/exampleForExpo/.idea/.gitignore +0 -3
- package/exampleForExpo/.idea/caches/deviceStreaming.xml +0 -549
- package/exampleForExpo/.idea/exampleForExpo.iml +0 -9
- package/exampleForExpo/.idea/misc.xml +0 -6
- package/exampleForExpo/.idea/modules.xml +0 -8
- package/exampleForExpo/.idea/vcs.xml +0 -6
- package/exampleForExpo/.idea/workspace.xml +0 -53
- package/exampleForExpo/README.md +0 -58
- package/exampleForExpo/__tests__/App.js +0 -10
- package/exampleForExpo/android/.gitignore +0 -21
- package/exampleForExpo/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/exampleForExpo/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
- package/exampleForExpo/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/exampleForExpo/android/.gradle/7.5.1/gc.properties +0 -0
- package/exampleForExpo/android/.gradle/vcs-1/gc.properties +0 -0
- package/exampleForExpo/android/app/BUCK +0 -55
- package/exampleForExpo/android/app/build.gradle +0 -362
- package/exampleForExpo/android/app/build_defs.bzl +0 -19
- package/exampleForExpo/android/app/debug.keystore +0 -0
- package/exampleForExpo/android/app/proguard-rules.pro +0 -14
- package/exampleForExpo/android/app/src/debug/AndroidManifest.xml +0 -7
- package/exampleForExpo/android/app/src/debug/java/kr/iamport/exampleForExpo/ReactNativeFlipper.java +0 -69
- package/exampleForExpo/android/app/src/main/AndroidManifest.xml +0 -34
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/MainActivity.java +0 -83
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/MainApplication.java +0 -106
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/MainApplicationReactNativeHost.java +0 -117
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/components/MainComponentsRegistry.java +0 -36
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +0 -48
- package/exampleForExpo/android/app/src/main/jni/CMakeLists.txt +0 -7
- package/exampleForExpo/android/app/src/main/jni/MainApplicationModuleProvider.cpp +0 -32
- package/exampleForExpo/android/app/src/main/jni/MainApplicationModuleProvider.h +0 -16
- package/exampleForExpo/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +0 -45
- package/exampleForExpo/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +0 -38
- package/exampleForExpo/android/app/src/main/jni/MainComponentsRegistry.cpp +0 -65
- package/exampleForExpo/android/app/src/main/jni/MainComponentsRegistry.h +0 -32
- package/exampleForExpo/android/app/src/main/jni/OnLoad.cpp +0 -11
- package/exampleForExpo/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
- package/exampleForExpo/android/app/src/main/res/drawable/splashscreen.xml +0 -4
- package/exampleForExpo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/exampleForExpo/android/app/src/main/res/values/colors.xml +0 -4
- package/exampleForExpo/android/app/src/main/res/values/strings.xml +0 -3
- package/exampleForExpo/android/app/src/main/res/values/styles.xml +0 -17
- package/exampleForExpo/android/app/src/main/res/values-night/colors.xml +0 -1
- package/exampleForExpo/android/build.gradle +0 -65
- package/exampleForExpo/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/exampleForExpo/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/exampleForExpo/android/gradle.properties +0 -53
- package/exampleForExpo/android/gradlew +0 -240
- package/exampleForExpo/android/gradlew.bat +0 -91
- package/exampleForExpo/android/settings.gradle +0 -17
- package/exampleForExpo/app.json +0 -16
- package/exampleForExpo/babel.config.js +0 -11
- package/exampleForExpo/index.js +0 -9
- package/exampleForExpo/ios/.gitignore +0 -30
- package/exampleForExpo/ios/.xcode.env +0 -11
- package/exampleForExpo/ios/Podfile +0 -61
- package/exampleForExpo/ios/Podfile.lock +0 -734
- package/exampleForExpo/ios/Podfile.properties.json +0 -3
- package/exampleForExpo/ios/exampleForExpo/AppDelegate.h +0 -9
- package/exampleForExpo/ios/exampleForExpo/AppDelegate.mm +0 -166
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/Contents.json +0 -6
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/SplashScreenBackground.imageset/Contents.json +0 -21
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
- package/exampleForExpo/ios/exampleForExpo/Info.plist +0 -118
- package/exampleForExpo/ios/exampleForExpo/SplashScreen.storyboard +0 -43
- package/exampleForExpo/ios/exampleForExpo/Supporting/Expo.plist +0 -16
- package/exampleForExpo/ios/exampleForExpo/exampleForExpo.entitlements +0 -8
- package/exampleForExpo/ios/exampleForExpo/main.m +0 -10
- package/exampleForExpo/ios/exampleForExpo/noop-file.swift +0 -4
- package/exampleForExpo/ios/exampleForExpo.xcodeproj/project.pbxproj +0 -544
- package/exampleForExpo/ios/exampleForExpo.xcodeproj/xcshareddata/xcschemes/exampleForExpo.xcscheme +0 -88
- package/exampleForExpo/ios/exampleForExpo.xcworkspace/contents.xcworkspacedata +0 -10
- package/exampleForExpo/ios/exampleForExpo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/exampleForExpo/metro.config.js +0 -62
- package/exampleForExpo/package.json +0 -40
- package/exampleForExpo/src/App.js +0 -14
- package/exampleForExpo/src/Certification/index.js +0 -25
- package/exampleForExpo/src/CertificationResult/index.js +0 -61
- package/exampleForExpo/src/CertificationTest/index.js +0 -151
- package/exampleForExpo/src/Home/index.js +0 -80
- package/exampleForExpo/src/Loading/index.js +0 -10
- package/exampleForExpo/src/NavigationService.js +0 -102
- package/exampleForExpo/src/Payment/index.js +0 -23
- package/exampleForExpo/src/PaymentResult/index.js +0 -82
- package/exampleForExpo/src/PaymentTest/index.js +0 -313
- package/exampleForExpo/src/Picker/index.js +0 -19
- package/exampleForExpo/src/constants.js +0 -322
- package/exampleForExpo/src/utils.js +0 -116
- package/exampleForExpo/yarn.lock +0 -9498
- package/exampleForManagedExpo/.expo-shared/assets.json +0 -4
- package/exampleForManagedExpo/.gitignore +0 -22
- package/exampleForManagedExpo/App.js +0 -11
- package/exampleForManagedExpo/README.md +0 -33
- package/exampleForManagedExpo/app.json +0 -90
- package/exampleForManagedExpo/assets/adaptive-icon.png +0 -0
- package/exampleForManagedExpo/assets/favicon.png +0 -0
- package/exampleForManagedExpo/assets/icon.png +0 -0
- package/exampleForManagedExpo/assets/splash.png +0 -0
- package/exampleForManagedExpo/babel.config.js +0 -11
- package/exampleForManagedExpo/metro.config.js +0 -62
- package/exampleForManagedExpo/package.json +0 -36
- package/exampleForManagedExpo/src/Certification/index.js +0 -25
- package/exampleForManagedExpo/src/CertificationResult/index.js +0 -61
- package/exampleForManagedExpo/src/CertificationTest/index.js +0 -151
- package/exampleForManagedExpo/src/Home/index.js +0 -80
- package/exampleForManagedExpo/src/Loading/index.js +0 -10
- package/exampleForManagedExpo/src/NavigationService.js +0 -102
- package/exampleForManagedExpo/src/Payment/index.js +0 -23
- package/exampleForManagedExpo/src/PaymentResult/index.js +0 -82
- package/exampleForManagedExpo/src/PaymentTest/index.js +0 -313
- package/exampleForManagedExpo/src/Picker/index.js +0 -19
- package/exampleForManagedExpo/src/constants.js +0 -322
- package/exampleForManagedExpo/src/utils.js +0 -116
- package/exampleForManagedExpo/yarn.lock +0 -9411
- package/exampleForWebView/.buckconfig +0 -6
- package/exampleForWebView/.eslintrc.js +0 -4
- package/exampleForWebView/.gitattributes +0 -3
- package/exampleForWebView/.gitignore +0 -68
- package/exampleForWebView/.prettierrc.js +0 -7
- package/exampleForWebView/.watchmanconfig +0 -1
- package/exampleForWebView/README.md +0 -77
- package/exampleForWebView/__tests__/App-test.tsx +0 -14
- package/exampleForWebView/_editorconfig +0 -3
- package/exampleForWebView/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/exampleForWebView/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
- package/exampleForWebView/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/exampleForWebView/android/.gradle/7.5.1/gc.properties +0 -0
- package/exampleForWebView/android/.gradle/vcs-1/gc.properties +0 -0
- package/exampleForWebView/android/app/BUCK +0 -55
- package/exampleForWebView/android/app/build.gradle +0 -313
- package/exampleForWebView/android/app/build_defs.bzl +0 -19
- package/exampleForWebView/android/app/debug.keystore +0 -0
- package/exampleForWebView/android/app/proguard-rules.pro +0 -10
- package/exampleForWebView/android/app/src/debug/AndroidManifest.xml +0 -13
- package/exampleForWebView/android/app/src/debug/java/com/exampleforwebview/ReactNativeFlipper.java +0 -73
- package/exampleForWebView/android/app/src/main/AndroidManifest.xml +0 -26
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/MainActivity.java +0 -48
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/MainApplication.java +0 -91
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/MainApplicationReactNativeHost.java +0 -116
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/components/MainComponentsRegistry.java +0 -36
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +0 -48
- package/exampleForWebView/android/app/src/main/jni/CMakeLists.txt +0 -7
- package/exampleForWebView/android/app/src/main/jni/MainApplicationModuleProvider.cpp +0 -32
- package/exampleForWebView/android/app/src/main/jni/MainApplicationModuleProvider.h +0 -16
- package/exampleForWebView/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +0 -45
- package/exampleForWebView/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +0 -38
- package/exampleForWebView/android/app/src/main/jni/MainComponentsRegistry.cpp +0 -65
- package/exampleForWebView/android/app/src/main/jni/MainComponentsRegistry.h +0 -32
- package/exampleForWebView/android/app/src/main/jni/OnLoad.cpp +0 -11
- package/exampleForWebView/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
- package/exampleForWebView/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/exampleForWebView/android/app/src/main/res/values/strings.xml +0 -3
- package/exampleForWebView/android/app/src/main/res/values/styles.xml +0 -9
- package/exampleForWebView/android/build.gradle +0 -51
- package/exampleForWebView/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/exampleForWebView/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/exampleForWebView/android/gradle.properties +0 -40
- package/exampleForWebView/android/gradlew +0 -234
- package/exampleForWebView/android/gradlew.bat +0 -89
- package/exampleForWebView/android/settings.gradle +0 -11
- package/exampleForWebView/app.json +0 -4
- package/exampleForWebView/babel.config.js +0 -11
- package/exampleForWebView/index.js +0 -9
- package/exampleForWebView/ios/.xcode.env +0 -11
- package/exampleForWebView/ios/Podfile +0 -43
- package/exampleForWebView/ios/Podfile.lock +0 -748
- package/exampleForWebView/ios/exampleForWebView/AppDelegate.h +0 -8
- package/exampleForWebView/ios/exampleForWebView/AppDelegate.mm +0 -133
- package/exampleForWebView/ios/exampleForWebView/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/exampleForWebView/ios/exampleForWebView/Images.xcassets/Contents.json +0 -6
- package/exampleForWebView/ios/exampleForWebView/Info.plist +0 -96
- package/exampleForWebView/ios/exampleForWebView/LaunchScreen.storyboard +0 -47
- package/exampleForWebView/ios/exampleForWebView/main.m +0 -10
- package/exampleForWebView/ios/exampleForWebView.xcodeproj/project.pbxproj +0 -723
- package/exampleForWebView/ios/exampleForWebView.xcodeproj/xcshareddata/xcschemes/exampleForWebView.xcscheme +0 -88
- package/exampleForWebView/ios/exampleForWebView.xcworkspace/contents.xcworkspacedata +0 -10
- package/exampleForWebView/ios/exampleForWebView.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/exampleForWebView/ios/exampleForWebViewTests/Info.plist +0 -24
- package/exampleForWebView/ios/exampleForWebViewTests/exampleForWebViewTests.m +0 -66
- package/exampleForWebView/manuals/CERTIFICATION.md +0 -223
- package/exampleForWebView/manuals/PAYMENT.md +0 -232
- package/exampleForWebView/metro.config.js +0 -61
- package/exampleForWebView/package.json +0 -54
- package/exampleForWebView/src/App.tsx +0 -50
- package/exampleForWebView/src/Certification.tsx +0 -54
- package/exampleForWebView/src/Home.tsx +0 -49
- package/exampleForWebView/src/Loading.tsx +0 -23
- package/exampleForWebView/src/Payment.tsx +0 -65
- package/exampleForWebView/yarn.lock +0 -7362
- package/iamport-react-native.podspec +0 -19
- package/ios/IamportReactNative-Bridging-Header.h +0 -1
- package/ios/IamportReactNative.xcodeproj/project.pbxproj +0 -293
- package/ios/IamportReactNativeViewManager.m +0 -12
- package/ios/IamportReactNativeViewManager.swift +0 -32
- package/lib/typescript/components/Certification/index.d.ts.map +0 -1
- package/lib/typescript/components/ErrorOnParams/index.d.ts +0 -7
- package/lib/typescript/components/ErrorOnParams/index.d.ts.map +0 -1
- package/lib/typescript/components/Loading/index.d.ts +0 -4
- package/lib/typescript/components/Loading/index.d.ts.map +0 -1
- package/lib/typescript/components/Payment/index.d.ts.map +0 -1
- package/lib/typescript/constants/index.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/styles.d.ts.map +0 -1
- package/lib/typescript/utils/IamportUrl.d.ts.map +0 -1
- package/lib/typescript/utils/Validation.d.ts.map +0 -1
- package/lib/typescript/utils/ValidationForPayment.d.ts.map +0 -1
- package/manuals/CALLBACK.md +0 -72
- package/manuals/EXAMPLE.md +0 -168
- package/manuals/EXPO.md +0 -246
- package/manuals/INSTALL.md +0 -31
- package/manuals/SETTING.md +0 -140
- package/manuals/SUPPORT.md +0 -35
- package/manuals/TRANS.md +0 -77
- package/manuals/VERSION.md +0 -187
- package/manuals/assets/after-linking-iamport.png +0 -0
- package/manuals/assets/after-linking-webview.png +0 -0
- package/manuals/assets/allow-arbitrary.gif +0 -0
- package/manuals/assets/android-studio-avd-manager.png +0 -0
- package/manuals/assets/android-studio-build.png +0 -0
- package/manuals/assets/app-scheme-registry.gif +0 -0
- package/manuals/assets/expo-eject.png +0 -0
- package/manuals/assets/ios-emulator-certification.png +0 -0
- package/manuals/assets/ios-emulator-home.png +0 -0
- package/manuals/assets/ios-emulator-payment.png +0 -0
- package/manuals/assets/ios-trans-create-header-file-1.png +0 -0
- package/manuals/assets/ios-trans-create-header-file-2.png +0 -0
- package/manuals/assets/ios-trans-create-objectivec-file-1.png +0 -0
- package/manuals/assets/ios-trans-create-objectivec-file-2.png +0 -0
- package/manuals/assets/ios-trans-result.png +0 -0
- package/manuals/assets/webview-peer-dependency.png +0 -0
- package/scripts/bootstrap.js +0 -24
- package/tsconfig.build.json +0 -9
- package/tsconfig.json +0 -26
- package/yarn.lock +0 -6174
- /package/lib/typescript/{constants → src/constants}/index.d.ts +0 -0
- /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
- /package/lib/typescript/{utils → src/utils}/Validation.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/ValidationForPayment.d.ts +0 -0
package/CHANGELOG.md
ADDED
package/README.md
CHANGED
|
@@ -1,42 +1,52 @@
|
|
|
1
1
|
# iamport-react-native
|
|
2
|
+
|
|
2
3
|
[](https://www.npmjs.com/package/iamport-react-native)
|
|
3
4
|
|
|
4
5
|
아임포트 리액트 네이티브 모듈입니다.
|
|
5
6
|
|
|
6
7
|
## 버전 정보
|
|
7
|
-
|
|
8
|
-
버전 히스토리는 [버전 정보](./
|
|
8
|
+
|
|
9
|
+
버전 히스토리는 [버전 정보](./CHANGELOG.md)를 참고하세요.
|
|
9
10
|
|
|
10
11
|
## 지원 정보
|
|
12
|
+
|
|
11
13
|
아임포트 리액트 네이티브 모듈은 결제 및 휴대폰 본인인증 기능을 제공합니다.
|
|
12
14
|
결제시 지원하는 PG사와 결제수단에 따른 자세한 정보는 [지원 정보](./manuals/SUPPORT.md)를 참고하세요.
|
|
13
15
|
|
|
14
16
|
## 설치하기
|
|
17
|
+
|
|
15
18
|
아래 명령어를 통해 아임포트 모듈을 귀하의 리액트 네이티브 프로젝트에 추가할 수 있습니다.
|
|
16
19
|
`react-native-webview` 모듈은 아임포트 모듈에 dependent하기 때문에 반드시 함께 설치해야 하며 **10.8.3 이상의 버전이 요구**됩니다.
|
|
17
20
|
보다 자세한 안내는 [설치하기](./manuals/INSTALL.md)를 참고하세요.
|
|
18
21
|
|
|
19
22
|
## 설정하기
|
|
23
|
+
|
|
20
24
|
### 안드로이드 및 iOS 설정하기
|
|
25
|
+
|
|
21
26
|
아임포트 모듈을 사용하기 위해서는 추가적인 설정이 필요합니다.
|
|
22
27
|
보다 자세한 설명은 [안드로이드 및 iOS 설정하기](./manuals/SETTING.md)를 참고하세요.
|
|
23
28
|
|
|
24
29
|
### Expo 설정하기
|
|
30
|
+
|
|
25
31
|
Expo 프로젝트에서 아임포트 모듈을 사용하기 위해서는 추가적인 설정이 필요합니다.
|
|
26
32
|
보다 자세한 설명은 [Expo에서 아임포트 연동하기](./manuals/EXPO.md)를 참고하세요.
|
|
27
33
|
|
|
28
34
|
### 실시간 계좌이체 설정하기
|
|
35
|
+
|
|
29
36
|
웹 표준 이니시스와 나이스 정보통신은 뱅크페이 앱을 통해 실시간 계좌이체를 진행합니다.
|
|
30
37
|
뱅크페이에서 결제 인증 후 본래의 앱으로 복귀 해 다음단계로 진행을 하려면 별도 설정이 요구됩니다.
|
|
31
38
|
자세한 내용은 [실시간 계좌이체 설정하기](./manuals/TRANS.md)를 참고하세요.
|
|
32
39
|
|
|
33
40
|
## 예제
|
|
41
|
+
|
|
34
42
|
아임포트 결제연동 모듈을 사용해 아래와 같이 일반/정기결제 및 휴대폰 본인인증 기능을 구현할 수 있습니다.
|
|
35
43
|
현재 구현된 예제들에 대한 설명 및 라이브러리 사용에 필요한 파라미터는 [예제](./manuals/EXAMPLE.md)를 참고하세요.
|
|
36
44
|
|
|
37
45
|
## 콜백 함수 설정하기
|
|
46
|
+
|
|
38
47
|
콜백 함수는 필수입력 필드로, 결제/본인인증 완료 후 routing을 통한 이동을 위해 아래와 같이 로직을 작성할 수 있습니다.
|
|
39
48
|
콜백 함수에 대한 자세한 설명은 [콜백 설정하기](./manuals/CALLBACK.md)를 참고하세요.
|
|
49
|
+
|
|
40
50
|
```js
|
|
41
51
|
function callback(response) {
|
|
42
52
|
navigation.replace('Result', response);
|
|
@@ -4,17 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _reactNativeWebview = require("react-native-webview");
|
|
10
|
-
var _Loading = _interopRequireDefault(require("../Loading"));
|
|
11
10
|
var _ErrorOnParams = _interopRequireDefault(require("../ErrorOnParams"));
|
|
12
|
-
var
|
|
11
|
+
var _Loading = _interopRequireDefault(require("../Loading"));
|
|
13
12
|
var _constants = require("../../constants");
|
|
13
|
+
var _Validation = require("../../utils/Validation");
|
|
14
14
|
var _styles = _interopRequireDefault(require("../../styles"));
|
|
15
15
|
var _IamportUrl = _interopRequireDefault(require("../../utils/IamportUrl"));
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
18
|
function Certification({
|
|
19
19
|
userCode,
|
|
20
20
|
tierCode,
|
|
@@ -36,84 +36,84 @@ function Certification({
|
|
|
36
36
|
loadingContainer,
|
|
37
37
|
webViewContainer
|
|
38
38
|
} = _styles.default;
|
|
39
|
-
return /*#__PURE__*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
(_webview$current = webview.current) === null || _webview$current === void 0 || _webview$current.injectJavaScript(`
|
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
40
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeWebview.WebView, {
|
|
41
|
+
containerStyle: webViewContainer,
|
|
42
|
+
ref: webview,
|
|
43
|
+
source: {
|
|
44
|
+
html: _constants.IMPConst.WEBVIEW_SOURCE_HTML
|
|
45
|
+
},
|
|
46
|
+
mixedContentMode: 'always',
|
|
47
|
+
onLoadEnd: () => {
|
|
48
|
+
if (!isWebViewLoaded) {
|
|
49
|
+
// html이 load되고 최초 한번만 inject javascript
|
|
50
|
+
if (tierCode) {
|
|
51
|
+
webview.current?.injectJavaScript(`
|
|
53
52
|
setTimeout(function() { IMP.agency("${userCode}", "${tierCode}"); });
|
|
54
53
|
`);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
(_webview$current2 = webview.current) === null || _webview$current2 === void 0 || _webview$current2.injectJavaScript(`
|
|
54
|
+
} else {
|
|
55
|
+
webview.current?.injectJavaScript(`
|
|
58
56
|
setTimeout(function() { IMP.init("${userCode}"); });
|
|
59
57
|
`);
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
}
|
|
59
|
+
webview.current?.injectJavaScript(`
|
|
62
60
|
setTimeout(function() {
|
|
63
61
|
IMP.certification(${JSON.stringify(data)}, function(response) {
|
|
64
62
|
window.ReactNativeWebView.postMessage(JSON.stringify(response));
|
|
65
63
|
});
|
|
66
64
|
});
|
|
67
65
|
`);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
66
|
+
setIsWebViewLoaded(true);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
onMessage: e => {
|
|
70
|
+
let messageData = e.nativeEvent.data;
|
|
71
|
+
if (decodeURIComponent(messageData) !== messageData) {
|
|
72
|
+
messageData = decodeURIComponent(messageData);
|
|
73
|
+
}
|
|
74
|
+
let response = JSON.parse(messageData);
|
|
75
|
+
if (typeof callback === 'function') {
|
|
76
|
+
callback(response);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
startInLoadingState: true,
|
|
80
|
+
renderLoading: () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
81
|
+
style: loadingContainer,
|
|
82
|
+
children: loading || /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {})
|
|
83
|
+
}),
|
|
84
|
+
originWhitelist: ['*'] // https://github.com/facebook/react-native/issues/19986
|
|
85
|
+
,
|
|
86
|
+
onShouldStartLoadWithRequest: request => {
|
|
87
|
+
const {
|
|
88
|
+
url
|
|
89
|
+
} = request;
|
|
90
|
+
// console.log('url: ' + url);
|
|
91
|
+
const iamportUrl = new _IamportUrl.default(url);
|
|
92
|
+
if (iamportUrl.isAppUrl()) {
|
|
93
|
+
/* 3rd-party 앱 오픈 */
|
|
94
|
+
iamportUrl.launchApp().catch(e => {
|
|
95
|
+
const {
|
|
96
|
+
code,
|
|
97
|
+
message
|
|
98
|
+
} = e;
|
|
99
|
+
callback({
|
|
100
|
+
imp_success: false,
|
|
101
|
+
error_code: code,
|
|
102
|
+
error_msg: message
|
|
103
|
+
});
|
|
104
104
|
});
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
if (iamportUrl.isPaymentOver(redirectUrl)) {
|
|
108
|
+
callback(iamportUrl.getQuery());
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
111
112
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}));
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
115
|
}
|
|
116
|
-
return /*#__PURE__*/
|
|
116
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorOnParams.default, {
|
|
117
117
|
message: validation.getMessage()
|
|
118
118
|
});
|
|
119
119
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeWebview","_ErrorOnParams","_interopRequireDefault","_Loading","_constants","_Validation","_styles","_IamportUrl","_jsxRuntime","e","__esModule","default","Certification","userCode","tierCode","data","loading","callback","isWebViewLoaded","setIsWebViewLoaded","useState","webview","createRef","validation","Validation","redirectUrl","IMPConst","M_REDIRECT_URL","m_redirect_url","undefined","trim","getIsValid","loadingContainer","webViewContainer","viewStyles","jsx","Fragment","children","WebView","containerStyle","ref","source","html","WEBVIEW_SOURCE_HTML","mixedContentMode","onLoadEnd","current","injectJavaScript","JSON","stringify","onMessage","messageData","nativeEvent","decodeURIComponent","response","parse","startInLoadingState","renderLoading","View","style","originWhitelist","onShouldStartLoadWithRequest","request","url","iamportUrl","IamportUrl","isAppUrl","launchApp","catch","code","message","imp_success","error_code","error_msg","isPaymentOver","getQuery","getMessage","_default","exports"],"sourceRoot":"../../../../src","sources":["components/Certification/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAEA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AAEA,IAAAQ,OAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,WAAA,GAAAL,sBAAA,CAAAJ,OAAA;AAAgD,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAI,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAUhD,SAASG,aAAaA,CAAC;EAAEC,QAAQ;EAAEC,QAAQ;EAAEC,IAAI;EAAEC,OAAO;EAAEC;AAAgB,CAAC,EAAE;EAC7E,MAAM,CAACC,eAAe,EAAEC,kBAAkB,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAC7D,MAAMC,OAAO,gBAAG,IAAAC,gBAAS,EAAU,CAAC;EACpC,MAAMC,UAAU,GAAG,IAAIC,sBAAU,CAACX,QAAQ,EAAEG,OAAO,EAAEC,QAAQ,EAAEF,IAAI,CAAC;EACpE,IAAIU,WAAW,GAAGC,mBAAQ,CAACC,cAAc;EACzC,IAAIZ,IAAI,CAACa,cAAc,KAAKC,SAAS,IAAId,IAAI,CAACa,cAAc,CAACE,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;IAC1EL,WAAW,GAAGV,IAAI,CAACa,cAAc;EACnC,CAAC,MAAM;IACLb,IAAI,CAACa,cAAc,GAAGH,WAAW;EACnC;EAEA,IAAIF,UAAU,CAACQ,UAAU,CAAC,CAAC,EAAE;IAC3B,MAAM;MAAEC,gBAAgB;MAAEC;IAAiB,CAAC,GAAGC,eAAU;IACzD,oBACE,IAAA1B,WAAA,CAAA2B,GAAA,EAAA3B,WAAA,CAAA4B,QAAA;MAAAC,QAAA,eACE,IAAA7B,WAAA,CAAA2B,GAAA,EAACnC,mBAAA,CAAAsC,OAAO;QACNC,cAAc,EAAEN,gBAAiB;QACjCO,GAAG,EAAEnB,OAAQ;QACboB,MAAM,EAAE;UAAEC,IAAI,EAAEhB,mBAAQ,CAACiB;QAAoB,CAAE;QAC/CC,gBAAgB,EAAE,QAAS;QAC3BC,SAAS,EAAEA,CAAA,KAAM;UACf,IAAI,CAAC3B,eAAe,EAAE;YACpB;YACA,IAAIJ,QAAQ,EAAE;cACZO,OAAO,CAACyB,OAAO,EAAEC,gBAAgB,CAAC;AAClD,gDAAgDlC,QAAQ,OAAOC,QAAQ;AACvE,SAAS,CAAC;YACI,CAAC,MAAM;cACLO,OAAO,CAACyB,OAAO,EAAEC,gBAAgB,CAAC;AAClD,8CAA8ClC,QAAQ;AACtD,SAAS,CAAC;YACI;YACAQ,OAAO,CAACyB,OAAO,EAAEC,gBAAgB,CAAC;AAChD;AACA,gCAAgCC,IAAI,CAACC,SAAS,CAAClC,IAAI,CAAC;AACpD;AACA;AACA;AACA,SAAS,CAAC;YACII,kBAAkB,CAAC,IAAI,CAAC;UAC1B;QACF,CAAE;QACF+B,SAAS,EAAGzC,CAAC,IAAK;UAChB,IAAI0C,WAAW,GAAG1C,CAAC,CAAC2C,WAAW,CAACrC,IAAI;UACpC,IAAIsC,kBAAkB,CAACF,WAAW,CAAC,KAAKA,WAAW,EAAE;YACnDA,WAAW,GAAGE,kBAAkB,CAACF,WAAW,CAAC;UAC/C;UACA,IAAIG,QAAQ,GAAGN,IAAI,CAACO,KAAK,CAACJ,WAAW,CAAC;UAEtC,IAAI,OAAOlC,QAAQ,KAAK,UAAU,EAAE;YAClCA,QAAQ,CAACqC,QAAQ,CAAC;UACpB;QACF,CAAE;QACFE,mBAAmB;QACnBC,aAAa,EAAEA,CAAA,kBACb,IAAAjD,WAAA,CAAA2B,GAAA,EAACpC,YAAA,CAAA2D,IAAI;UAACC,KAAK,EAAE3B,gBAAiB;UAAAK,QAAA,EAAErB,OAAO,iBAAI,IAAAR,WAAA,CAAA2B,GAAA,EAAChC,QAAA,CAAAQ,OAAO,IAAE;QAAC,CAAO,CAC7D;QACFiD,eAAe,EAAE,CAAC,GAAG,CAAE,CAAC;QAAA;QACxBC,4BAA4B,EAAGC,OAAO,IAAK;UACzC,MAAM;YAAEC;UAAI,CAAC,GAAGD,OAAO;UACvB;UACA,MAAME,UAAU,GAAG,IAAIC,mBAAU,CAACF,GAAG,CAAC;UACtC,IAAIC,UAAU,CAACE,QAAQ,CAAC,CAAC,EAAE;YACzB;YACAF,UAAU,CAACG,SAAS,CAAC,CAAC,CAACC,KAAK,CAAE3D,CAAC,IAAK;cAClC,MAAM;gBAAE4D,IAAI;gBAAEC;cAAQ,CAAC,GAAG7D,CAAC;cAC3BQ,QAAQ,CAAC;gBACPsD,WAAW,EAAE,KAAK;gBAClBC,UAAU,EAAEH,IAAI;gBAChBI,SAAS,EAAEH;cACb,CAAC,CAAC;YACJ,CAAC,CAAC;YAEF,OAAO,KAAK;UACd;UACA,IAAIN,UAAU,CAACU,aAAa,CAACjD,WAAW,CAAC,EAAE;YACzCR,QAAQ,CAAC+C,UAAU,CAACW,QAAQ,CAAC,CAAC,CAAC;YAC/B,OAAO,KAAK;UACd;UAEA,OAAO,IAAI;QACb;MAAE,CACH;IAAC,CACF,CAAC;EAEP;EAEA,oBAAO,IAAAnE,WAAA,CAAA2B,GAAA,EAAClC,cAAA,CAAAU,OAAa;IAAC2D,OAAO,EAAE/C,UAAU,CAACqD,UAAU,CAAC;EAAE,CAAE,CAAC;AAC5D;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAnE,OAAA,GAEcC,aAAa","ignoreList":[]}
|
|
@@ -4,20 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
9
|
const logo = require('../../img/iamport-logo.png');
|
|
11
10
|
function ErrorOnParams({
|
|
12
11
|
message
|
|
13
12
|
}) {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
style: styles.container
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
14
|
+
style: styles.container,
|
|
15
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
16
|
+
source: logo
|
|
17
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
18
|
+
style: styles.text,
|
|
19
|
+
children: message
|
|
20
|
+
})]
|
|
21
|
+
});
|
|
21
22
|
}
|
|
22
23
|
const styles = _reactNative.StyleSheet.create({
|
|
23
24
|
container: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_jsxRuntime","logo","ErrorOnParams","message","jsxs","View","style","styles","container","children","jsx","Image","source","Text","text","StyleSheet","create","flex","alignItems","justifyContent","textAlign","fontSize","marginTop","lineHeight","button","backgroundColor","color","borderColor","borderWidth","borderRadius","paddingTop","paddingBottom","paddingLeft","paddingRight","fontWeight","_default","exports","default"],"sourceRoot":"../../../../src","sources":["components/ErrorOnParams/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAA6D,IAAAC,WAAA,GAAAD,OAAA;AAE7D,MAAME,IAAI,GAAGF,OAAO,CAAC,4BAA4B,CAAC;AAIlD,SAASG,aAAaA,CAAC;EAAEC;AAAoB,CAAC,EAAE;EAC9C,oBACE,IAAAH,WAAA,CAAAI,IAAA,EAACN,YAAA,CAAAO,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5B,IAAAT,WAAA,CAAAU,GAAA,EAACZ,YAAA,CAAAa,KAAK;MAACC,MAAM,EAAEX;IAAK,CAAE,CAAC,eACvB,IAAAD,WAAA,CAAAU,GAAA,EAACZ,YAAA,CAAAe,IAAI;MAACP,KAAK,EAAEC,MAAM,CAACO,IAAK;MAAAL,QAAA,EAAEN;IAAO,CAAO,CAAC;EAAA,CACtC,CAAC;AAEX;AAEA,MAAMI,MAAM,GAAGQ,uBAAU,CAACC,MAAM,CAAC;EAC/BR,SAAS,EAAE;IACTS,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDL,IAAI,EAAE;IACJM,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,EAAE;IACbC,UAAU,EAAE;EACd,CAAC;EACDC,MAAM,EAAE;IACNC,eAAe,EAAE,MAAM;IACvBC,KAAK,EAAE,SAAS;IAChBC,WAAW,EAAE,MAAM;IACnBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,EAAE;IACjBC,WAAW,EAAE,EAAE;IACfC,YAAY,EAAE,EAAE;IAChBZ,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,EAAE;IACbY,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEYnC,aAAa","ignoreList":[]}
|
|
@@ -4,18 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
9
|
const logo = require('../../img/iamport-logo.png');
|
|
11
10
|
function Loading() {
|
|
12
|
-
return /*#__PURE__*/
|
|
13
|
-
style: styles.container
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
12
|
+
style: styles.container,
|
|
13
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
14
|
+
source: logo
|
|
15
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
16
|
+
style: styles.text,
|
|
17
|
+
children: "\uC7A0\uC2DC\uB9CC \uAE30\uB2E4\uB824\uC8FC\uC138\uC694..."
|
|
18
|
+
})]
|
|
19
|
+
});
|
|
19
20
|
}
|
|
20
21
|
const styles = _reactNative.StyleSheet.create({
|
|
21
22
|
container: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_jsxRuntime","logo","Loading","jsxs","View","style","styles","container","children","jsx","Image","source","Text","text","StyleSheet","create","flex","alignItems","flexDirection","justifyContent","fontSize","marginTop","lineHeight","_default","exports","default"],"sourceRoot":"../../../../src","sources":["components/Loading/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAA6D,IAAAC,WAAA,GAAAD,OAAA;AAE7D,MAAME,IAAI,GAAGF,OAAO,CAAC,4BAA4B,CAAC;AAElD,SAASG,OAAOA,CAAA,EAAG;EACjB,oBACE,IAAAF,WAAA,CAAAG,IAAA,EAACL,YAAA,CAAAM,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5B,IAAAR,WAAA,CAAAS,GAAA,EAACX,YAAA,CAAAY,KAAK;MAACC,MAAM,EAAEV;IAAK,CAAE,CAAC,eACvB,IAAAD,WAAA,CAAAS,GAAA,EAACX,YAAA,CAAAc,IAAI;MAACP,KAAK,EAAEC,MAAM,CAACO,IAAK;MAAAL,QAAA,EAAC;IAAa,CAAM,CAAC;EAAA,CAC1C,CAAC;AAEX;AAEA,MAAMF,MAAM,GAAGQ,uBAAU,CAACC,MAAM,CAAC;EAC/BR,SAAS,EAAE;IACTS,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,QAAQ;IACvBC,cAAc,EAAE;EAClB,CAAC;EACDN,IAAI,EAAE;IACJO,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,EAAE;IACbC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEYvB,OAAO","ignoreList":[]}
|
|
@@ -4,17 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
8
|
-
var _ValidationForPayment = _interopRequireDefault(require("../../utils/ValidationForPayment"));
|
|
9
|
-
var _ErrorOnParams = _interopRequireDefault(require("../ErrorOnParams"));
|
|
7
|
+
var _react = require("react");
|
|
10
8
|
var _reactNative = require("react-native");
|
|
11
|
-
var _constants = require("../../constants");
|
|
12
|
-
var _IamportUrl = _interopRequireDefault(require("../../utils/IamportUrl"));
|
|
13
9
|
var _reactNativeWebview = _interopRequireDefault(require("react-native-webview"));
|
|
10
|
+
var _constants = require("../../constants");
|
|
14
11
|
var _styles = _interopRequireDefault(require("../../styles"));
|
|
12
|
+
var _IamportUrl = _interopRequireDefault(require("../../utils/IamportUrl"));
|
|
13
|
+
var _ValidationForPayment = _interopRequireDefault(require("../../utils/ValidationForPayment"));
|
|
14
|
+
var _ErrorOnParams = _interopRequireDefault(require("../ErrorOnParams"));
|
|
15
15
|
var _Loading = _interopRequireDefault(require("../Loading"));
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
18
|
function Payment({
|
|
19
19
|
userCode,
|
|
20
20
|
tierCode,
|
|
@@ -63,16 +63,15 @@ function Payment({
|
|
|
63
63
|
|
|
64
64
|
/* 나이스 - 실시간 계좌이체 대비 */
|
|
65
65
|
if (pg.startsWith('nice')) {
|
|
66
|
-
var _data$app_scheme, _webview$current;
|
|
67
66
|
const queryParameters = iamportUrl.getQuery();
|
|
68
67
|
const scheme = iamportUrl.scheme;
|
|
69
68
|
let niceTransRedirectionUrl;
|
|
70
|
-
if (scheme ===
|
|
69
|
+
if (scheme === data.app_scheme?.toLowerCase()) {
|
|
71
70
|
if (queryParameters.callbackparam1 != null) {
|
|
72
71
|
niceTransRedirectionUrl = queryParameters.callbackparam1;
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
|
-
|
|
74
|
+
webview.current?.injectJavaScript(`
|
|
76
75
|
window.location.href = "${niceTransRedirectionUrl}?${iamportUrl.getStringifiedQuery()}";
|
|
77
76
|
`);
|
|
78
77
|
}
|
|
@@ -117,107 +116,107 @@ function Payment({
|
|
|
117
116
|
loadingContainer,
|
|
118
117
|
webViewContainer
|
|
119
118
|
} = _styles.default;
|
|
120
|
-
return /*#__PURE__*/
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
(_webview$current2 = webview.current) === null || _webview$current2 === void 0 || _webview$current2.injectJavaScript(`
|
|
119
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
120
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeWebview.default, {
|
|
121
|
+
containerStyle: webViewContainer,
|
|
122
|
+
ref: webview,
|
|
123
|
+
source: webviewSource,
|
|
124
|
+
mixedContentMode: 'always',
|
|
125
|
+
onLoadEnd: () => {
|
|
126
|
+
if (!isWebViewLoaded) {
|
|
127
|
+
if (data.pg.startsWith('eximbay')) {
|
|
128
|
+
data.popup = false;
|
|
129
|
+
}
|
|
130
|
+
if (tierCode) {
|
|
131
|
+
webview.current?.injectJavaScript(`
|
|
134
132
|
setTimeout(function() { IMP.agency("${userCode}", "${tierCode}"); });
|
|
135
133
|
`);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
(_webview$current3 = webview.current) === null || _webview$current3 === void 0 || _webview$current3.injectJavaScript(`
|
|
134
|
+
} else {
|
|
135
|
+
webview.current?.injectJavaScript(`
|
|
139
136
|
setTimeout(function() { IMP.init("${userCode}"); });
|
|
140
137
|
`);
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
}
|
|
139
|
+
webview.current?.injectJavaScript(`
|
|
143
140
|
setTimeout(function() {
|
|
144
141
|
IMP.request_pay(${JSON.stringify(data)}, function(response) {
|
|
145
142
|
window.ReactNativeWebView.postMessage(JSON.stringify(response));
|
|
146
143
|
});
|
|
147
144
|
});
|
|
148
145
|
`);
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
setIsWebViewLoaded(true);
|
|
147
|
+
}
|
|
151
148
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
/* PG사가 callback을 지원하는 경우, 결제결과를 받아 callback을 실행한다 */,
|
|
158
|
-
onMessage: e => {
|
|
159
|
-
/**
|
|
160
|
-
* [v1.6.0] 다날의 경우 response에 주문명(name)이 포함되어 있는데
|
|
161
|
-
* 주문명에 %가 들어갈 경우, decodeURIComponent시 URI malformed 에러가 발생하는 것 대비해
|
|
162
|
-
* 우선 encodeURIComponent를 한 후, decodeURIComponent가 끝나면
|
|
163
|
-
* 최종적으로 decodeURIComponent를 한 번 더 한다
|
|
164
|
-
*/
|
|
165
|
-
const encoded = encodeURIComponent(e.nativeEvent.data);
|
|
166
|
-
const decoded = decodeURIComponent(encoded);
|
|
167
|
-
const response = JSON.parse(decoded);
|
|
168
|
-
if (typeof callback === 'function') {
|
|
169
|
-
callback(response);
|
|
149
|
+
// only for Android
|
|
150
|
+
if (removeLoadingNeeded()) {
|
|
151
|
+
setShowLoading(false);
|
|
152
|
+
}
|
|
170
153
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
154
|
+
/* PG사가 callback을 지원하는 경우, 결제결과를 받아 callback을 실행한다 */,
|
|
155
|
+
onMessage: e => {
|
|
156
|
+
/**
|
|
157
|
+
* [v1.6.0] 다날의 경우 response에 주문명(name)이 포함되어 있는데
|
|
158
|
+
* 주문명에 %가 들어갈 경우, decodeURIComponent시 URI malformed 에러가 발생하는 것 대비해
|
|
159
|
+
* 우선 encodeURIComponent를 한 후, decodeURIComponent가 끝나면
|
|
160
|
+
* 최종적으로 decodeURIComponent를 한 번 더 한다
|
|
161
|
+
*/
|
|
162
|
+
const encoded = encodeURIComponent(e.nativeEvent.data);
|
|
163
|
+
const decoded = decodeURIComponent(encoded);
|
|
164
|
+
const response = JSON.parse(decoded);
|
|
182
165
|
if (typeof callback === 'function') {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
166
|
+
callback(response);
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
originWhitelist: ['*'] // https://github.com/facebook/react-native/issues/19986
|
|
170
|
+
,
|
|
171
|
+
sharedCookiesEnabled: true,
|
|
172
|
+
onShouldStartLoadWithRequest: request => {
|
|
173
|
+
const {
|
|
174
|
+
url
|
|
175
|
+
} = request;
|
|
176
|
+
// console.log(`url: ${url}`);
|
|
177
|
+
const iamportUrl = new _IamportUrl.default(url);
|
|
178
|
+
if (iamportUrl.isPaymentOver(redirectUrl, data)) {
|
|
179
|
+
if (typeof callback === 'function') {
|
|
180
|
+
if (data.pg.startsWith('html5_inicis') && data.pay_method === 'trans' && _reactNative.Platform.OS === 'ios') {
|
|
181
|
+
callback(iamportUrl.getInicisTransQuery(redirectUrl));
|
|
182
|
+
} else {
|
|
183
|
+
callback(iamportUrl.getQuery());
|
|
184
|
+
}
|
|
187
185
|
}
|
|
186
|
+
return false;
|
|
188
187
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
error_msg: message
|
|
188
|
+
if (iamportUrl.isAppUrl()) {
|
|
189
|
+
/* 3rd-party 앱 오픈 */
|
|
190
|
+
iamportUrl.launchApp().catch(e => {
|
|
191
|
+
const {
|
|
192
|
+
code,
|
|
193
|
+
message
|
|
194
|
+
} = e;
|
|
195
|
+
callback({
|
|
196
|
+
imp_success: false,
|
|
197
|
+
error_code: code,
|
|
198
|
+
error_msg: message
|
|
199
|
+
});
|
|
202
200
|
});
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
201
|
+
return false;
|
|
202
|
+
}
|
|
203
|
+
if (isWebViewLoaded && showLoading && iamportUrl.isIframeLoaded()) {
|
|
204
|
+
/**
|
|
205
|
+
* only for IOS
|
|
206
|
+
* iframe이 load되면(url이 about:blank 또는 https://service.iamport.kr이 아니면)
|
|
207
|
+
* webview의 loading 상태를 해제한다
|
|
208
|
+
*/
|
|
209
|
+
setShowLoading(false);
|
|
210
|
+
}
|
|
211
|
+
return true;
|
|
213
212
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
213
|
+
}), showLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
214
|
+
style: loadingContainer,
|
|
215
|
+
children: loading || /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {})
|
|
216
|
+
})]
|
|
217
|
+
});
|
|
219
218
|
}
|
|
220
|
-
return /*#__PURE__*/
|
|
219
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorOnParams.default, {
|
|
221
220
|
message: validation.getMessage()
|
|
222
221
|
});
|
|
223
222
|
}
|