iamport-react-native 2.0.13 → 2.0.14
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/.circleci/config.yml +98 -0
- package/.editorconfig +15 -0
- package/.gitattributes +3 -0
- package/.gitignore +69 -0
- package/.yarnrc +3 -0
- package/.yarnrc.yml +1 -0
- package/README.md +1 -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 +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/babel.config.js +3 -0
- package/example/.gitignore +69 -0
- package/example/README.md +44 -0
- 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 +2 -0
- package/example/android/.gradle/vcs-1/gc.properties +0 -0
- package/example/android/app/build.gradle +183 -0
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/proguard-rules.pro +10 -0
- package/example/android/app/src/debug/AndroidManifest.xml +8 -0
- package/example/android/app/src/debug/java/com/example/iamportreactnative/ReactNativeFlipper.java +69 -0
- package/example/android/app/src/main/AndroidManifest.xml +34 -0
- package/example/android/app/src/main/java/com/example/iamportreactnative/MainActivity.java +15 -0
- package/example/android/app/src/main/java/com/example/iamportreactnative/MainApplication.java +80 -0
- 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 +3 -0
- package/example/android/app/src/main/res/values/styles.xml +9 -0
- package/example/android/build.gradle +21 -0
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/example/android/gradle.properties +44 -0
- package/example/android/gradlew +183 -0
- package/example/android/gradlew.bat +103 -0
- package/example/android/settings.gradle +9 -0
- package/example/app.json +4 -0
- package/example/babel.config.js +11 -0
- package/example/index.js +5 -0
- package/example/ios/File.swift +8 -0
- package/example/ios/Gemfile +7 -0
- package/example/ios/Gemfile.lock +99 -0
- package/example/ios/IamportReactNativeExample/AppDelegate.h +15 -0
- package/example/ios/IamportReactNativeExample/AppDelegate.mm +138 -0
- package/example/ios/IamportReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/example/ios/IamportReactNativeExample/Images.xcassets/Contents.json +6 -0
- package/example/ios/IamportReactNativeExample/Info.plist +121 -0
- package/example/ios/IamportReactNativeExample/LaunchScreen.storyboard +58 -0
- package/example/ios/IamportReactNativeExample/main.m +16 -0
- package/example/ios/IamportReactNativeExample-Bridging-Header.h +3 -0
- package/example/ios/IamportReactNativeExample.xcodeproj/project.pbxproj +969 -0
- package/example/ios/IamportReactNativeExample.xcodeproj/xcshareddata/xcschemes/IamportReactNativeExample.xcscheme +99 -0
- package/example/ios/IamportReactNativeExample.xcworkspace/contents.xcworkspacedata +10 -0
- package/example/ios/IamportReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/example/ios/Podfile +57 -0
- package/example/ios/Podfile.lock +756 -0
- package/example/metro.config.js +66 -0
- package/example/package.json +40 -0
- package/example/src/App.tsx +17 -0
- package/example/src/Certification/index.tsx +30 -0
- package/example/src/CertificationResult/index.tsx +79 -0
- package/example/src/CertificationTest/index.tsx +214 -0
- package/example/src/Home/index.tsx +87 -0
- package/example/src/Loading/index.tsx +12 -0
- package/example/src/NavigationService.tsx +127 -0
- package/example/src/Payment/index.tsx +28 -0
- package/example/src/PaymentResult/index.tsx +96 -0
- package/example/src/PaymentTest/index.tsx +383 -0
- package/example/src/Picker/index.tsx +60 -0
- package/example/src/constants.ts +274 -0
- package/example/src/utils.ts +83 -0
- package/example/yarn.lock +7358 -0
- package/exampleForExpo/.buckconfig +6 -0
- package/exampleForExpo/.expo/README.md +8 -0
- package/exampleForExpo/.expo/devices.json +3 -0
- package/exampleForExpo/.gitattributes +1 -0
- package/exampleForExpo/.gitignore +125 -0
- package/exampleForExpo/.idea/.gitignore +3 -0
- package/exampleForExpo/.idea/caches/deviceStreaming.xml +549 -0
- package/exampleForExpo/.idea/exampleForExpo.iml +9 -0
- package/exampleForExpo/.idea/misc.xml +6 -0
- package/exampleForExpo/.idea/modules.xml +8 -0
- package/exampleForExpo/.idea/vcs.xml +6 -0
- package/exampleForExpo/.idea/workspace.xml +53 -0
- package/exampleForExpo/README.md +58 -0
- package/exampleForExpo/__tests__/App.js +10 -0
- package/exampleForExpo/android/.gitignore +21 -0
- 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 +55 -0
- package/exampleForExpo/android/app/build.gradle +362 -0
- package/exampleForExpo/android/app/build_defs.bzl +19 -0
- package/exampleForExpo/android/app/debug.keystore +0 -0
- package/exampleForExpo/android/app/proguard-rules.pro +14 -0
- package/exampleForExpo/android/app/src/debug/AndroidManifest.xml +7 -0
- package/exampleForExpo/android/app/src/debug/java/kr/iamport/exampleForExpo/ReactNativeFlipper.java +69 -0
- package/exampleForExpo/android/app/src/main/AndroidManifest.xml +34 -0
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/MainActivity.java +83 -0
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/MainApplication.java +106 -0
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/MainApplicationReactNativeHost.java +117 -0
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/components/MainComponentsRegistry.java +36 -0
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -0
- package/exampleForExpo/android/app/src/main/jni/CMakeLists.txt +7 -0
- package/exampleForExpo/android/app/src/main/jni/MainApplicationModuleProvider.cpp +32 -0
- package/exampleForExpo/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -0
- package/exampleForExpo/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -0
- package/exampleForExpo/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -0
- package/exampleForExpo/android/app/src/main/jni/MainComponentsRegistry.cpp +65 -0
- package/exampleForExpo/android/app/src/main/jni/MainComponentsRegistry.h +32 -0
- package/exampleForExpo/android/app/src/main/jni/OnLoad.cpp +11 -0
- package/exampleForExpo/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
- package/exampleForExpo/android/app/src/main/res/drawable/splashscreen.xml +4 -0
- 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 +4 -0
- package/exampleForExpo/android/app/src/main/res/values/strings.xml +3 -0
- package/exampleForExpo/android/app/src/main/res/values/styles.xml +17 -0
- package/exampleForExpo/android/app/src/main/res/values-night/colors.xml +1 -0
- package/exampleForExpo/android/build.gradle +65 -0
- package/exampleForExpo/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/exampleForExpo/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/exampleForExpo/android/gradle.properties +53 -0
- package/exampleForExpo/android/gradlew +240 -0
- package/exampleForExpo/android/gradlew.bat +91 -0
- package/exampleForExpo/android/settings.gradle +17 -0
- package/exampleForExpo/app.json +16 -0
- package/exampleForExpo/babel.config.js +11 -0
- package/exampleForExpo/index.js +9 -0
- package/exampleForExpo/ios/.gitignore +30 -0
- package/exampleForExpo/ios/.xcode.env +11 -0
- package/exampleForExpo/ios/Podfile +61 -0
- package/exampleForExpo/ios/Podfile.lock +734 -0
- package/exampleForExpo/ios/Podfile.properties.json +3 -0
- package/exampleForExpo/ios/exampleForExpo/AppDelegate.h +9 -0
- package/exampleForExpo/ios/exampleForExpo/AppDelegate.mm +166 -0
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/AppIcon.appiconset/Contents.json +38 -0
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/Contents.json +6 -0
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/SplashScreenBackground.imageset/Contents.json +21 -0
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
- package/exampleForExpo/ios/exampleForExpo/Info.plist +118 -0
- package/exampleForExpo/ios/exampleForExpo/SplashScreen.storyboard +43 -0
- package/exampleForExpo/ios/exampleForExpo/Supporting/Expo.plist +16 -0
- package/exampleForExpo/ios/exampleForExpo/exampleForExpo.entitlements +8 -0
- package/exampleForExpo/ios/exampleForExpo/main.m +10 -0
- package/exampleForExpo/ios/exampleForExpo/noop-file.swift +4 -0
- package/exampleForExpo/ios/exampleForExpo.xcodeproj/project.pbxproj +544 -0
- package/exampleForExpo/ios/exampleForExpo.xcodeproj/xcshareddata/xcschemes/exampleForExpo.xcscheme +88 -0
- package/exampleForExpo/ios/exampleForExpo.xcworkspace/contents.xcworkspacedata +10 -0
- package/exampleForExpo/ios/exampleForExpo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/exampleForExpo/metro.config.js +62 -0
- package/exampleForExpo/package.json +40 -0
- package/exampleForExpo/src/App.js +14 -0
- package/exampleForExpo/src/Certification/index.js +25 -0
- package/exampleForExpo/src/CertificationResult/index.js +61 -0
- package/exampleForExpo/src/CertificationTest/index.js +151 -0
- package/exampleForExpo/src/Home/index.js +80 -0
- package/exampleForExpo/src/Loading/index.js +10 -0
- package/exampleForExpo/src/NavigationService.js +102 -0
- package/exampleForExpo/src/Payment/index.js +23 -0
- package/exampleForExpo/src/PaymentResult/index.js +82 -0
- package/exampleForExpo/src/PaymentTest/index.js +313 -0
- package/exampleForExpo/src/Picker/index.js +19 -0
- package/exampleForExpo/src/constants.js +322 -0
- package/exampleForExpo/src/utils.js +116 -0
- package/exampleForExpo/yarn.lock +9498 -0
- package/exampleForManagedExpo/.expo-shared/assets.json +4 -0
- package/exampleForManagedExpo/.gitignore +22 -0
- package/exampleForManagedExpo/App.js +11 -0
- package/exampleForManagedExpo/README.md +33 -0
- package/exampleForManagedExpo/app.json +90 -0
- 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 +11 -0
- package/exampleForManagedExpo/metro.config.js +62 -0
- package/exampleForManagedExpo/package.json +36 -0
- package/exampleForManagedExpo/src/Certification/index.js +25 -0
- package/exampleForManagedExpo/src/CertificationResult/index.js +61 -0
- package/exampleForManagedExpo/src/CertificationTest/index.js +151 -0
- package/exampleForManagedExpo/src/Home/index.js +80 -0
- package/exampleForManagedExpo/src/Loading/index.js +10 -0
- package/exampleForManagedExpo/src/NavigationService.js +102 -0
- package/exampleForManagedExpo/src/Payment/index.js +23 -0
- package/exampleForManagedExpo/src/PaymentResult/index.js +82 -0
- package/exampleForManagedExpo/src/PaymentTest/index.js +313 -0
- package/exampleForManagedExpo/src/Picker/index.js +19 -0
- package/exampleForManagedExpo/src/constants.js +322 -0
- package/exampleForManagedExpo/src/utils.js +116 -0
- package/exampleForManagedExpo/yarn.lock +9411 -0
- package/exampleForWebView/.buckconfig +6 -0
- package/exampleForWebView/.eslintrc.js +4 -0
- package/exampleForWebView/.gitattributes +3 -0
- package/exampleForWebView/.gitignore +68 -0
- package/exampleForWebView/.prettierrc.js +7 -0
- package/exampleForWebView/.watchmanconfig +1 -0
- package/exampleForWebView/README.md +77 -0
- package/exampleForWebView/__tests__/App-test.tsx +14 -0
- package/exampleForWebView/_editorconfig +3 -0
- 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 +55 -0
- package/exampleForWebView/android/app/build.gradle +313 -0
- package/exampleForWebView/android/app/build_defs.bzl +19 -0
- package/exampleForWebView/android/app/debug.keystore +0 -0
- package/exampleForWebView/android/app/proguard-rules.pro +10 -0
- package/exampleForWebView/android/app/src/debug/AndroidManifest.xml +13 -0
- package/exampleForWebView/android/app/src/debug/java/com/exampleforwebview/ReactNativeFlipper.java +73 -0
- package/exampleForWebView/android/app/src/main/AndroidManifest.xml +26 -0
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/MainActivity.java +48 -0
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/MainApplication.java +91 -0
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/MainApplicationReactNativeHost.java +116 -0
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/components/MainComponentsRegistry.java +36 -0
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -0
- package/exampleForWebView/android/app/src/main/jni/CMakeLists.txt +7 -0
- package/exampleForWebView/android/app/src/main/jni/MainApplicationModuleProvider.cpp +32 -0
- package/exampleForWebView/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -0
- package/exampleForWebView/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -0
- package/exampleForWebView/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -0
- package/exampleForWebView/android/app/src/main/jni/MainComponentsRegistry.cpp +65 -0
- package/exampleForWebView/android/app/src/main/jni/MainComponentsRegistry.h +32 -0
- package/exampleForWebView/android/app/src/main/jni/OnLoad.cpp +11 -0
- package/exampleForWebView/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
- 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 +3 -0
- package/exampleForWebView/android/app/src/main/res/values/styles.xml +9 -0
- package/exampleForWebView/android/build.gradle +51 -0
- package/exampleForWebView/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/exampleForWebView/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/exampleForWebView/android/gradle.properties +40 -0
- package/exampleForWebView/android/gradlew +234 -0
- package/exampleForWebView/android/gradlew.bat +89 -0
- package/exampleForWebView/android/settings.gradle +11 -0
- package/exampleForWebView/app.json +4 -0
- package/exampleForWebView/babel.config.js +11 -0
- package/exampleForWebView/index.js +9 -0
- package/exampleForWebView/ios/.xcode.env +11 -0
- package/exampleForWebView/ios/Podfile +43 -0
- package/exampleForWebView/ios/Podfile.lock +748 -0
- package/exampleForWebView/ios/exampleForWebView/AppDelegate.h +8 -0
- package/exampleForWebView/ios/exampleForWebView/AppDelegate.mm +133 -0
- package/exampleForWebView/ios/exampleForWebView/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/exampleForWebView/ios/exampleForWebView/Images.xcassets/Contents.json +6 -0
- package/exampleForWebView/ios/exampleForWebView/Info.plist +96 -0
- package/exampleForWebView/ios/exampleForWebView/LaunchScreen.storyboard +47 -0
- package/exampleForWebView/ios/exampleForWebView/main.m +10 -0
- package/exampleForWebView/ios/exampleForWebView.xcodeproj/project.pbxproj +723 -0
- package/exampleForWebView/ios/exampleForWebView.xcodeproj/xcshareddata/xcschemes/exampleForWebView.xcscheme +88 -0
- package/exampleForWebView/ios/exampleForWebView.xcworkspace/contents.xcworkspacedata +10 -0
- package/exampleForWebView/ios/exampleForWebView.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/exampleForWebView/ios/exampleForWebViewTests/Info.plist +24 -0
- package/exampleForWebView/ios/exampleForWebViewTests/exampleForWebViewTests.m +66 -0
- package/exampleForWebView/manuals/CERTIFICATION.md +223 -0
- package/exampleForWebView/manuals/PAYMENT.md +232 -0
- package/exampleForWebView/metro.config.js +61 -0
- package/exampleForWebView/package.json +54 -0
- package/exampleForWebView/src/App.tsx +50 -0
- package/exampleForWebView/src/Certification.tsx +54 -0
- package/exampleForWebView/src/Home.tsx +49 -0
- package/exampleForWebView/src/Loading.tsx +23 -0
- package/exampleForWebView/src/Payment.tsx +65 -0
- package/exampleForWebView/yarn.lock +7362 -0
- package/lib/commonjs/components/Certification/index.js +10 -13
- package/lib/commonjs/components/Certification/index.js.map +1 -1
- package/lib/commonjs/components/ErrorOnParams/index.js +5 -7
- package/lib/commonjs/components/ErrorOnParams/index.js.map +1 -1
- package/lib/commonjs/components/Loading/index.js +2 -3
- package/lib/commonjs/components/Loading/index.js.map +1 -1
- package/lib/commonjs/components/Payment/index.js +10 -13
- package/lib/commonjs/components/Payment/index.js.map +1 -1
- package/lib/commonjs/constants/index.js +2 -4
- package/lib/commonjs/constants/index.js.map +1 -1
- package/lib/commonjs/index.js +2 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/styles.js +1 -2
- package/lib/commonjs/styles.js.map +1 -1
- package/lib/commonjs/utils/IamportUrl.js +2 -3
- 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 +1 -2
- package/lib/commonjs/utils/ValidationForPayment.js.map +1 -1
- package/lib/module/components/Certification/index.js +7 -8
- package/lib/module/components/Certification/index.js.map +1 -1
- package/lib/module/components/ErrorOnParams/index.js +3 -4
- package/lib/module/components/ErrorOnParams/index.js.map +1 -1
- package/lib/module/components/Loading/index.js.map +1 -1
- package/lib/module/components/Payment/index.js +7 -8
- package/lib/module/components/Payment/index.js.map +1 -1
- package/lib/module/constants/index.js +1 -2
- package/lib/module/constants/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/styles.js.map +1 -1
- package/lib/module/utils/IamportUrl.js.map +1 -1
- package/lib/module/utils/Validation.js.map +1 -1
- package/lib/module/utils/ValidationForPayment.js.map +1 -1
- package/lib/typescript/constants/index.d.ts +1 -1
- package/lib/typescript/constants/index.d.ts.map +1 -1
- package/manuals/CALLBACK.md +72 -0
- package/manuals/EXAMPLE.md +168 -0
- package/manuals/EXPO.md +246 -0
- package/manuals/INSTALL.md +31 -0
- package/manuals/SETTING.md +140 -0
- package/manuals/SUPPORT.md +35 -0
- package/manuals/TRANS.md +77 -0
- package/manuals/VERSION.md +184 -0
- 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/package.json +3 -2
- package/scripts/bootstrap.js +24 -0
- package/src/constants/index.ts +8 -0
- package/tsconfig.build.json +9 -0
- package/tsconfig.json +26 -0
- package/yarn.lock +6174 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
FormControl,
|
|
5
|
+
Input,
|
|
6
|
+
ScrollView,
|
|
7
|
+
Stack,
|
|
8
|
+
Switch,
|
|
9
|
+
Text,
|
|
10
|
+
} from 'native-base';
|
|
11
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
12
|
+
import Picker from '../Picker';
|
|
13
|
+
import { PGS, TIER_CODES } from '../constants';
|
|
14
|
+
import { getMethods, getQuotas } from '../utils';
|
|
15
|
+
import { IMPConst } from 'iamport-react-native';
|
|
16
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
17
|
+
|
|
18
|
+
export default function PaymentTest({ navigation }) {
|
|
19
|
+
const [pg, setPg] = useState('html5_inicis');
|
|
20
|
+
const [tierCode, setTierCode] = useState(undefined);
|
|
21
|
+
const [method, setMethod] = useState('card');
|
|
22
|
+
const [cardQuota, setCardQuota] = useState(0);
|
|
23
|
+
const [merchantUid, setMerchantUid] = useState(`mid_${new Date().getTime()}`);
|
|
24
|
+
const [name, setName] = useState('아임포트 결제데이터분석');
|
|
25
|
+
const [amount, setAmount] = useState('39000');
|
|
26
|
+
const [buyerName, setBuyerName] = useState('홍길동');
|
|
27
|
+
const [buyerTel, setBuyerTel] = useState('01012341234');
|
|
28
|
+
const [buyerEmail, setBuyerEmail] = useState('example@example.com');
|
|
29
|
+
const [vbankDue, setVbankDue] = useState('');
|
|
30
|
+
const [bizNum, setBizNum] = useState('');
|
|
31
|
+
const [escrow, setEscrow] = useState(false);
|
|
32
|
+
const [digital, setDigital] = useState(false);
|
|
33
|
+
const insets = useSafeAreaInsets();
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<SafeAreaView
|
|
37
|
+
style={{
|
|
38
|
+
flex: 1,
|
|
39
|
+
justifyContent: 'center',
|
|
40
|
+
backgroundColor: '#f5f5f5',
|
|
41
|
+
paddingTop: -insets.top,
|
|
42
|
+
}}
|
|
43
|
+
>
|
|
44
|
+
<ScrollView m={2} backgroundColor={'#fff'}>
|
|
45
|
+
<FormControl p={'5%'} borderRadius={3}>
|
|
46
|
+
<Stack direction={'row'}>
|
|
47
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
48
|
+
PG사
|
|
49
|
+
</FormControl.Label>
|
|
50
|
+
<Picker
|
|
51
|
+
data={PGS}
|
|
52
|
+
selectedValue={pg}
|
|
53
|
+
onValueChange={(value) => {
|
|
54
|
+
setPg(value);
|
|
55
|
+
const methods = getMethods(value);
|
|
56
|
+
setMethod(methods[0].value);
|
|
57
|
+
}}
|
|
58
|
+
/>
|
|
59
|
+
</Stack>
|
|
60
|
+
<Stack direction={'row'}>
|
|
61
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
62
|
+
티어 코드
|
|
63
|
+
</FormControl.Label>
|
|
64
|
+
<Picker
|
|
65
|
+
data={TIER_CODES}
|
|
66
|
+
selectedValue={tierCode}
|
|
67
|
+
onValueChange={(value) => setTierCode(value)}
|
|
68
|
+
/>
|
|
69
|
+
</Stack>
|
|
70
|
+
<Stack direction={'row'}>
|
|
71
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
72
|
+
결제수단
|
|
73
|
+
</FormControl.Label>
|
|
74
|
+
<Picker
|
|
75
|
+
data={getMethods(pg)}
|
|
76
|
+
selectedValue={method}
|
|
77
|
+
onValueChange={(value) => setMethod(value)}
|
|
78
|
+
/>
|
|
79
|
+
</Stack>
|
|
80
|
+
{method === 'card' && (
|
|
81
|
+
<Stack direction={'row'}>
|
|
82
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
83
|
+
할부개월수
|
|
84
|
+
</FormControl.Label>
|
|
85
|
+
<Picker
|
|
86
|
+
data={getQuotas(pg)}
|
|
87
|
+
selectedValue={cardQuota}
|
|
88
|
+
onValueChange={(value) => setCardQuota(parseInt(value, 10))}
|
|
89
|
+
/>
|
|
90
|
+
</Stack>
|
|
91
|
+
)}
|
|
92
|
+
{method === 'vbank' && (
|
|
93
|
+
<Stack direction={'row'}>
|
|
94
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
95
|
+
입금기한
|
|
96
|
+
</FormControl.Label>
|
|
97
|
+
<Input
|
|
98
|
+
mb={2}
|
|
99
|
+
flex={1}
|
|
100
|
+
value={vbankDue}
|
|
101
|
+
onChangeText={(value) => setVbankDue(value)}
|
|
102
|
+
/>
|
|
103
|
+
</Stack>
|
|
104
|
+
)}
|
|
105
|
+
{method === 'vbank' && pg === 'danal_tpay' && (
|
|
106
|
+
<Stack direction={'row'}>
|
|
107
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
108
|
+
사업자번호
|
|
109
|
+
</FormControl.Label>
|
|
110
|
+
<Input
|
|
111
|
+
mb={2}
|
|
112
|
+
flex={1}
|
|
113
|
+
value={bizNum}
|
|
114
|
+
keyboardType="number-pad"
|
|
115
|
+
returnKeyType={'done'}
|
|
116
|
+
onChangeText={(value) => setBizNum(value)}
|
|
117
|
+
/>
|
|
118
|
+
</Stack>
|
|
119
|
+
)}
|
|
120
|
+
{method === 'phone' && (
|
|
121
|
+
<Stack direction={'row'}>
|
|
122
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
123
|
+
실물컨텐츠
|
|
124
|
+
</FormControl.Label>
|
|
125
|
+
<Switch
|
|
126
|
+
mb={2}
|
|
127
|
+
value={digital}
|
|
128
|
+
onValueChange={(value) => setDigital(value)}
|
|
129
|
+
/>
|
|
130
|
+
</Stack>
|
|
131
|
+
)}
|
|
132
|
+
<Stack direction={'row'}>
|
|
133
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
134
|
+
에스크로
|
|
135
|
+
</FormControl.Label>
|
|
136
|
+
<Switch
|
|
137
|
+
mb={2}
|
|
138
|
+
value={escrow}
|
|
139
|
+
onValueChange={(value) => setEscrow(value)}
|
|
140
|
+
/>
|
|
141
|
+
</Stack>
|
|
142
|
+
<Stack direction={'row'}>
|
|
143
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
144
|
+
주문명
|
|
145
|
+
</FormControl.Label>
|
|
146
|
+
<Input
|
|
147
|
+
mb={2}
|
|
148
|
+
flex={1}
|
|
149
|
+
value={name}
|
|
150
|
+
onChangeText={(value) => setName(value)}
|
|
151
|
+
/>
|
|
152
|
+
</Stack>
|
|
153
|
+
<Stack direction={'row'}>
|
|
154
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
155
|
+
결제금액
|
|
156
|
+
</FormControl.Label>
|
|
157
|
+
<Input
|
|
158
|
+
mb={2}
|
|
159
|
+
flex={1}
|
|
160
|
+
value={amount}
|
|
161
|
+
keyboardType="number-pad"
|
|
162
|
+
returnKeyType={'done'}
|
|
163
|
+
onChangeText={(value) => setAmount(value)}
|
|
164
|
+
/>
|
|
165
|
+
</Stack>
|
|
166
|
+
<Stack direction={'row'}>
|
|
167
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
168
|
+
주문번호
|
|
169
|
+
</FormControl.Label>
|
|
170
|
+
<Input
|
|
171
|
+
mb={2}
|
|
172
|
+
flex={1}
|
|
173
|
+
value={merchantUid}
|
|
174
|
+
onChangeText={(value) => setMerchantUid(value)}
|
|
175
|
+
/>
|
|
176
|
+
</Stack>
|
|
177
|
+
<Stack direction={'row'}>
|
|
178
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
179
|
+
이름
|
|
180
|
+
</FormControl.Label>
|
|
181
|
+
<Input
|
|
182
|
+
mb={2}
|
|
183
|
+
flex={1}
|
|
184
|
+
value={buyerName}
|
|
185
|
+
onChangeText={(value) => setBuyerName(value)}
|
|
186
|
+
/>
|
|
187
|
+
</Stack>
|
|
188
|
+
<Stack direction={'row'}>
|
|
189
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
190
|
+
전화번호
|
|
191
|
+
</FormControl.Label>
|
|
192
|
+
<Input
|
|
193
|
+
mb={2}
|
|
194
|
+
flex={1}
|
|
195
|
+
value={buyerTel}
|
|
196
|
+
keyboardType="number-pad"
|
|
197
|
+
returnKeyType={'done'}
|
|
198
|
+
onChangeText={(value) => setBuyerTel(value)}
|
|
199
|
+
/>
|
|
200
|
+
</Stack>
|
|
201
|
+
<Stack direction={'row'}>
|
|
202
|
+
<FormControl.Label alignItems={'center'} mb={2} w={'18%'}>
|
|
203
|
+
이메일
|
|
204
|
+
</FormControl.Label>
|
|
205
|
+
<Input
|
|
206
|
+
mb={2}
|
|
207
|
+
flex={1}
|
|
208
|
+
value={buyerEmail}
|
|
209
|
+
onChangeText={(value) => setBuyerEmail(value)}
|
|
210
|
+
/>
|
|
211
|
+
</Stack>
|
|
212
|
+
<Button
|
|
213
|
+
bgColor={'#344e81'}
|
|
214
|
+
/* @ts-ignore */
|
|
215
|
+
onPress={() => {
|
|
216
|
+
const data = {
|
|
217
|
+
params: {
|
|
218
|
+
pg,
|
|
219
|
+
pay_method: method,
|
|
220
|
+
currency: undefined,
|
|
221
|
+
notice_url: undefined,
|
|
222
|
+
display: undefined,
|
|
223
|
+
merchant_uid: merchantUid,
|
|
224
|
+
name,
|
|
225
|
+
amount,
|
|
226
|
+
app_scheme: 'exampleforexpo',
|
|
227
|
+
tax_free: undefined,
|
|
228
|
+
buyer_name: buyerName,
|
|
229
|
+
buyer_tel: buyerTel,
|
|
230
|
+
buyer_email: buyerEmail,
|
|
231
|
+
buyer_addr: undefined,
|
|
232
|
+
buyer_postcode: undefined,
|
|
233
|
+
custom_data: undefined,
|
|
234
|
+
vbank_due: undefined,
|
|
235
|
+
popup: undefined,
|
|
236
|
+
digital: undefined,
|
|
237
|
+
language: undefined,
|
|
238
|
+
biz_num: undefined,
|
|
239
|
+
customer_uid: undefined,
|
|
240
|
+
naverPopupMode: undefined,
|
|
241
|
+
naverUseCfm: undefined,
|
|
242
|
+
naverProducts: undefined,
|
|
243
|
+
m_redirect_url: IMPConst.M_REDIRECT_URL,
|
|
244
|
+
escrow,
|
|
245
|
+
},
|
|
246
|
+
tierCode,
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
// 신용카드의 경우, 할부기한 추가
|
|
250
|
+
if (method === 'card' && cardQuota !== 0) {
|
|
251
|
+
data.params.display = {
|
|
252
|
+
card_quota: cardQuota === 1 ? [] : [cardQuota],
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// 가상계좌의 경우, 입금기한 추가
|
|
257
|
+
if (method === 'vbank' && vbankDue) {
|
|
258
|
+
data.params.vbank_due = vbankDue;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// 다날 && 가상계좌의 경우, 사업자 등록번호 10자리 추가
|
|
262
|
+
if (method === 'vbank' && pg === 'danal_tpay') {
|
|
263
|
+
data.params.biz_num = bizNum;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// 휴대폰 소액결제의 경우, 실물 컨텐츠 여부 추가
|
|
267
|
+
if (method === 'phone') {
|
|
268
|
+
data.params.digital = digital;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// 정기결제의 경우, customer_uid 추가
|
|
272
|
+
if (pg === 'kcp_billing') {
|
|
273
|
+
data.params.customer_uid = `cuid_${new Date().getTime()}`;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (pg === 'naverpay') {
|
|
277
|
+
const today = new Date();
|
|
278
|
+
const oneMonthLater = new Date(
|
|
279
|
+
today.setMonth(today.getMonth() + 1)
|
|
280
|
+
);
|
|
281
|
+
const dd = String(oneMonthLater.getDate()).padStart(2, '0');
|
|
282
|
+
const mm = String(oneMonthLater.getMonth() + 1).padStart(
|
|
283
|
+
2,
|
|
284
|
+
'0'
|
|
285
|
+
); // January is 0!
|
|
286
|
+
const yyyy = oneMonthLater.getFullYear();
|
|
287
|
+
|
|
288
|
+
data.params.naverPopupMode = false;
|
|
289
|
+
data.params.naverUseCfm = `${yyyy}${mm}${dd}`;
|
|
290
|
+
data.params.naverProducts = [
|
|
291
|
+
{
|
|
292
|
+
categoryType: 'BOOK',
|
|
293
|
+
categoryId: 'GENERAL',
|
|
294
|
+
uid: '107922211',
|
|
295
|
+
name: '한국사',
|
|
296
|
+
payReferrer: 'NAVER_BOOK',
|
|
297
|
+
count: 10,
|
|
298
|
+
},
|
|
299
|
+
];
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
navigation.navigate('Payment', data);
|
|
303
|
+
}}
|
|
304
|
+
>
|
|
305
|
+
<Text fontWeight={'bold'} color={'#fff'}>
|
|
306
|
+
결제하기
|
|
307
|
+
</Text>
|
|
308
|
+
</Button>
|
|
309
|
+
</FormControl>
|
|
310
|
+
</ScrollView>
|
|
311
|
+
</SafeAreaView>
|
|
312
|
+
);
|
|
313
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Select } from 'native-base';
|
|
3
|
+
|
|
4
|
+
export default function Picker(props) {
|
|
5
|
+
return (
|
|
6
|
+
<Select
|
|
7
|
+
mb={2}
|
|
8
|
+
flex={1}
|
|
9
|
+
borderColor={'transparent'}
|
|
10
|
+
selectedValue={props.selectedValue}
|
|
11
|
+
onValueChange={props.onValueChange}
|
|
12
|
+
>
|
|
13
|
+
{props.data.map((e, index) => {
|
|
14
|
+
const { label, value } = e;
|
|
15
|
+
return <Select.Item label={label} value={value} key={index} />;
|
|
16
|
+
})}
|
|
17
|
+
</Select>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
const PGS = [
|
|
2
|
+
{
|
|
3
|
+
value: 'html5_inicis',
|
|
4
|
+
label: '웹 표준 이니시스',
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
value: 'kcp',
|
|
8
|
+
label: 'NHN KCP',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
value: 'kcp_billing',
|
|
12
|
+
label: 'NHN KCP 정기결제',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
value: 'uplus',
|
|
16
|
+
label: '토스페이먼츠 - (구)LG 유플러스',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
value: 'jtnet',
|
|
20
|
+
label: 'JTNET',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
value: 'nice',
|
|
24
|
+
label: '나이스 정보통신',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: 'kakaopay',
|
|
28
|
+
label: '신 - 카카오페이',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
value: 'kakao',
|
|
32
|
+
label: '구 - LG CNS 카카오페이',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
value: 'danal',
|
|
36
|
+
label: '다날 휴대폰 소액결제',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
value: 'danal_tpay',
|
|
40
|
+
label: '다날 일반결제',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
value: 'kicc',
|
|
44
|
+
label: '한국정보통신',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
value: 'paypal',
|
|
48
|
+
label: '페이팔',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
value: 'mobilians',
|
|
52
|
+
label: '모빌리언스',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
value: 'payco',
|
|
56
|
+
label: '페이코',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
value: 'eximbay',
|
|
60
|
+
label: '엑심베이',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
value: 'settle',
|
|
64
|
+
label: '세틀뱅크 가상계좌',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
value: 'naverco',
|
|
68
|
+
label: '네이버 체크아웃',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
value: 'naverpay',
|
|
72
|
+
label: '네이버페이',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
value: 'smilepay',
|
|
76
|
+
label: '스마일페이',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
value: 'chai',
|
|
80
|
+
label: '차이페이',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
value: 'payple',
|
|
84
|
+
label: '페이플',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
value: 'alipay',
|
|
88
|
+
label: '알리페이',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
value: 'bluewalnut',
|
|
92
|
+
label: '블루월넛',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
value: 'tosspay',
|
|
96
|
+
label: '토스 - 간편결제',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
value: 'smartro',
|
|
100
|
+
label: '스마트로',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
value: 'tosspayments',
|
|
104
|
+
label: '토스페이먼츠 (신모듈)',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
value: 'ksnet',
|
|
108
|
+
label: 'KSNET',
|
|
109
|
+
},
|
|
110
|
+
];
|
|
111
|
+
|
|
112
|
+
const TIER_CODES = [
|
|
113
|
+
{
|
|
114
|
+
value: 'ADD',
|
|
115
|
+
label: '아디다스',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
value: 'RBK',
|
|
119
|
+
label: '리복 - 복수PG 사용중',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
value: 'HKT',
|
|
123
|
+
label: '에어텔닷컴 렌트카 테스트',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
value: 'HKK',
|
|
127
|
+
label: 'YES Angel',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
value: 'DGA',
|
|
131
|
+
label: 'CAMPVR대구',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
value: 'SCH',
|
|
135
|
+
label: 'CAMPVR광화문',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
value: 'SNL',
|
|
139
|
+
label: '토즈_선릉점',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
value: '111',
|
|
143
|
+
label: '여기어때',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
value: 'ABC',
|
|
147
|
+
label: '삼성점',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
value: 'XYZ',
|
|
151
|
+
label: '삼성점',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
value: '123',
|
|
155
|
+
label: 'aaaaaaa',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
value: 'AAZ',
|
|
159
|
+
label: '테스트하위가맹',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
value: '001',
|
|
163
|
+
label: '테스트',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
value: 'A01',
|
|
167
|
+
label: '행복쇼핑',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
value: 'T11',
|
|
171
|
+
label: 'test11',
|
|
172
|
+
},
|
|
173
|
+
];
|
|
174
|
+
|
|
175
|
+
const METHODS = [
|
|
176
|
+
{
|
|
177
|
+
value: 'card',
|
|
178
|
+
label: '신용카드',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
value: 'vbank',
|
|
182
|
+
label: '가상계좌',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
value: 'trans',
|
|
186
|
+
label: '실시간 계좌이체',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
value: 'phone',
|
|
190
|
+
label: '휴대폰 소액결제',
|
|
191
|
+
},
|
|
192
|
+
];
|
|
193
|
+
|
|
194
|
+
const METHODS_FOR_INICIS = METHODS.concat([
|
|
195
|
+
{
|
|
196
|
+
value: 'samsung',
|
|
197
|
+
label: '삼성페이',
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
value: 'kapy',
|
|
201
|
+
label: 'KPAY',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
value: 'cultureland',
|
|
205
|
+
label: '문화상품권',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
value: 'smartculture',
|
|
209
|
+
label: '스마트문상',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
value: 'happymoney',
|
|
213
|
+
label: '해피머니',
|
|
214
|
+
},
|
|
215
|
+
]);
|
|
216
|
+
|
|
217
|
+
const METHODS_FOR_UPLUS = METHODS.concat([
|
|
218
|
+
{
|
|
219
|
+
value: 'cultureland',
|
|
220
|
+
label: '문화상품권',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
value: 'smartculture',
|
|
224
|
+
label: '스마트문상',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
value: 'booknlife',
|
|
228
|
+
label: '도서상품권',
|
|
229
|
+
},
|
|
230
|
+
]);
|
|
231
|
+
|
|
232
|
+
const METHODS_FOR_KCP = METHODS.concat([
|
|
233
|
+
{
|
|
234
|
+
value: 'samsung',
|
|
235
|
+
label: '삼성페이',
|
|
236
|
+
},
|
|
237
|
+
]);
|
|
238
|
+
|
|
239
|
+
const METHODS_FOR_MOBILIANS = [
|
|
240
|
+
{
|
|
241
|
+
value: 'card',
|
|
242
|
+
label: '신용카드',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
value: 'phone',
|
|
246
|
+
label: '휴대폰 소액결제',
|
|
247
|
+
},
|
|
248
|
+
];
|
|
249
|
+
|
|
250
|
+
const METHOD_FOR_CARD = [
|
|
251
|
+
{
|
|
252
|
+
value: 'card',
|
|
253
|
+
label: '신용카드',
|
|
254
|
+
},
|
|
255
|
+
];
|
|
256
|
+
|
|
257
|
+
const METHOD_FOR_PHONE = [
|
|
258
|
+
{
|
|
259
|
+
value: 'phone',
|
|
260
|
+
label: '휴대폰 소액결제',
|
|
261
|
+
},
|
|
262
|
+
];
|
|
263
|
+
|
|
264
|
+
const METHOD_FOR_VBANK = [
|
|
265
|
+
{
|
|
266
|
+
value: 'vbank',
|
|
267
|
+
label: '가상계좌',
|
|
268
|
+
},
|
|
269
|
+
];
|
|
270
|
+
|
|
271
|
+
const METHOD_FOR_TRANS = [
|
|
272
|
+
{
|
|
273
|
+
value: 'trans',
|
|
274
|
+
label: '실시간 계좌이체',
|
|
275
|
+
},
|
|
276
|
+
];
|
|
277
|
+
|
|
278
|
+
const QUOTAS = [
|
|
279
|
+
{
|
|
280
|
+
value: 0,
|
|
281
|
+
label: 'PG사 기본 제공',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
value: 1,
|
|
285
|
+
label: '일시불',
|
|
286
|
+
},
|
|
287
|
+
];
|
|
288
|
+
|
|
289
|
+
const CARRIERS = [
|
|
290
|
+
{
|
|
291
|
+
value: 'SKT',
|
|
292
|
+
label: 'SKT',
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
value: 'KTF',
|
|
296
|
+
label: 'KT',
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
value: 'LGT',
|
|
300
|
+
label: 'LGU+',
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
value: 'MVNO',
|
|
304
|
+
label: '알뜰폰',
|
|
305
|
+
},
|
|
306
|
+
];
|
|
307
|
+
|
|
308
|
+
export {
|
|
309
|
+
PGS,
|
|
310
|
+
TIER_CODES,
|
|
311
|
+
METHODS,
|
|
312
|
+
METHODS_FOR_INICIS,
|
|
313
|
+
METHODS_FOR_UPLUS,
|
|
314
|
+
METHODS_FOR_KCP,
|
|
315
|
+
METHODS_FOR_MOBILIANS,
|
|
316
|
+
METHOD_FOR_CARD,
|
|
317
|
+
METHOD_FOR_PHONE,
|
|
318
|
+
METHOD_FOR_VBANK,
|
|
319
|
+
METHOD_FOR_TRANS,
|
|
320
|
+
QUOTAS,
|
|
321
|
+
CARRIERS,
|
|
322
|
+
};
|