├── .gitignore ├── README.md ├── android ├── README.md ├── build.gradle └── src │ └── main │ ├── AndroidManifest.xml │ └── java │ └── com │ └── reactlibrary │ ├── RnTosspaymentsModule.java │ └── RnTosspaymentsPackage.java ├── callback.html ├── example ├── .buckconfig ├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── App.d.ts ├── App.js.map ├── App.tsx ├── __tests__ │ └── App-test.tsx ├── android │ ├── app │ │ ├── _BUCK │ │ ├── build.gradle │ │ ├── build_defs.bzl │ │ ├── debug.keystore │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── debug │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── tosspaymentsexample │ │ │ │ └── ReactNativeFlipper.java │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── tosspaymentsexample │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios │ ├── Podfile │ ├── Podfile.lock │ ├── TosspaymentsExample.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── TosspaymentsExample.xcscheme │ ├── TosspaymentsExample.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── TosspaymentsExample │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ └── main.m │ └── TosspaymentsExampleTests │ │ ├── Info.plist │ │ └── TosspaymentsExampleTests.m ├── metro.config.js ├── package.json ├── tsconfig.json └── yarn.lock ├── ios ├── RnTosspayments.h ├── RnTosspayments.m ├── RnTosspayments.xcodeproj │ └── project.pbxproj └── RnTosspayments.xcworkspace │ └── contents.xcworkspacedata ├── package.json ├── payments.html ├── src ├── Payments.tsx ├── constants.tsx ├── index.ts └── types.ts ├── tosspayments-react-native.podspec ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # node.js 6 | # 7 | node_modules/ 8 | npm-debug.log 9 | yarn-error.log 10 | 11 | # Xcode 12 | # 13 | build/ 14 | *.pbxuser 15 | !default.pbxuser 16 | *.mode1v3 17 | !default.mode1v3 18 | *.mode2v3 19 | !default.mode2v3 20 | *.perspectivev3 21 | !default.perspectivev3 22 | xcuserdata 23 | *.xccheckout 24 | *.moved-aside 25 | DerivedData 26 | *.hmap 27 | *.ipa 28 | *.xcuserstate 29 | project.xcworkspace 30 | 31 | # Android/IntelliJ 32 | # 33 | build/ 34 | .idea 35 | .gradle 36 | local.properties 37 | *.iml 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | lib/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 토스페이먼츠 React Native 모듈 2 | 3 | [토스페이먼츠](https://www.tosspayments.com/) 리액트 네이티브 모듈입니다. 토스페이먼츠에서 공식적으로 지원하는 Javascript SDK를 사용하여 리액트 네이티브 모듈로 구성했습니다. 4 | 5 | ## 설치하기 6 | 7 | ``` 8 | $ npm install tosspayments-react-native 9 | ``` 10 | 11 | ``` 12 | $ yarn add tosspayments-react-native 13 | ``` 14 | 15 | `tosspayments-react-native`는 `v11.3.2`이상의 `react-native-webview`와 `v1.2.3`이상의 `react-native-send-intent`를 필요로 합니다. 설치되어 있지 않은 경우 모듈 사용이 불가하오니 꼭 설치해주세요. 16 | 17 | ## 설정하기 18 | 19 | > [iamport-react-native](https://github.com/iamport/iamport-react-native) 모듈 설정 내용으로 작성했습니다. 20 | 21 | #### 1. 외부 앱 리스트 등록 22 | 23 | 3rd party앱(간편결제)를 실행할 수 있도록 외부 앱 리스트를 등록해야합니다. 24 | 25 | ```html 26 | LSApplicationQueriesSchemes 27 | 28 | kftc-bankpay 29 | 30 | ispmobile 31 | 32 | itms-apps 33 | 34 | hdcardappcardansimclick 35 | 36 | smhyundaiansimclick 37 | 38 | shinhan-sr-ansimclick 39 | 40 | smshinhanansimclick 41 | 42 | kb-acp 43 | 44 | mpocket.online.ansimclick 45 | 46 | ansimclickscard 47 | 48 | ansimclickipcollect 49 | 50 | vguardstart 51 | 52 | samsungpay 53 | 54 | scardcertiapp 55 | 56 | lottesmartpay 57 | 58 | lotteappcard 59 | 60 | cloudpay 61 | 62 | nhappcardansimclick 63 | 64 | nonghyupcardansimclick 65 | 66 | citispay 67 | 68 | citicardappkr 69 | 70 | citimobileapp 71 | 72 | kakaotalk 73 | 74 | payco 75 | 76 | lpayapp 77 | 78 | hanamopmoasign 79 | 80 | wooripay 81 | 82 | nhallonepayansimclick 83 | 84 | hanawalletmembers 85 | 86 | 87 | ``` 88 | 89 | #### 2. App Transport Security 설정 90 | 91 | ```html 92 | NSAppTransportSecurity 93 | 94 | NSAllowsArbitraryLoadsInWebContent 95 | 96 | NSAllowsArbitraryLoads 97 | 98 | 99 | ``` 100 | 101 | ## 예제 102 | 103 | 현재 지원하는 기능은 카드 일반결제입니다. 104 | 105 | ### 카드 일반결제 예제 106 | 107 | 필요 파라미터는 아래를 참고하세요. 자세한 Description은 [토스페이먼츠 결제 연동 가이드](https://docs.tosspayments.com/guides/card)에서 확인 가능합니다. 108 | | Prop | Type | Description | Required | 109 | |--------------------------|-----------------------|--------------------------------------------------------------------------------------------|----------| 110 | | clientKey | string | 클라이언트 API 키 | true | 111 | | amount | number | 실제 결제되는 금액입니다. | true | 112 | | orderId | string | 가맹점에서 사용하는 해당 주문에 대한 ID입니다. | true | 113 | | orderName | string | 결제에 대한 주문명입니다. | true | 114 | | cardCompany | string | 카드사가 고정된 상태로 결제창이 열립니다. | false | 115 | | cardInstallmentPlan | number | 할부 개월 수가 고정된 상태로 결제창이 열립니다. | false | 116 | | maxCardInstallmentPlan | number | 최대 할부 개월 수를 제한하기 위해 사용합니다. | false | 117 | | useCardPoint | boolean | 카드사 포인트 사용 여부를 결정합니다. | false | 118 | | customerName | string | 결제하는 고객의 실명입니다. | false | 119 | | customerEmail | string | 결제하는 고객의 이메일입니다. | false | 120 | | customerMobilePhone | string | 결제하는 고객의 휴대폰 번호입니다. | false | 121 | | taxFreeAmount | number | 결제하는 상품에 대한 면세 금액입니다. | false | 122 | | useInternationalCardOnly | boolean | 결제창에서 해외카드를 지원합니다. | false | 123 | | flowMode | 'DEFAULT' \| 'DIRECT' | 토스페이먼츠의 약관 동의 페이지와 카드 선택 페이지를 건너뛰고 바로 카드사 페이지를 엽니다. | false | 124 | | discountCode | string | 할인 코드입니다. 이 값을 주면 할인 코드에 해당하는 할인이 적용됩니다. | false | 125 | | appScheme | string | 모바일 ISP 앱에서 가맹점 앱으로 전환하기 위해 사용됩니다. | false | 126 | | onSuccess | void | 결제가 성공했을 때의 콜백 함수입니다. | true | 127 | | onError | void | 결제가 실패했을 때의 콜백 함수입니다. | true | 128 | 129 | ```jsx 130 | Alert.alert("결제 성공", JSON.stringify(data))} 136 | onError={(error) => Alert.alert("결제 실패", JSON.stringify(error))} 137 | /> 138 | ``` 139 | -------------------------------------------------------------------------------- /android/README.md: -------------------------------------------------------------------------------- 1 | README 2 | ====== 3 | 4 | If you want to publish the lib as a maven dependency, follow these steps before publishing a new version to npm: 5 | 6 | 1. Be sure to have the Android [SDK](https://developer.android.com/studio/index.html) and [NDK](https://developer.android.com/ndk/guides/index.html) installed 7 | 2. Be sure to have a `local.properties` file in this folder that points to the Android SDK and NDK 8 | ``` 9 | ndk.dir=/Users/{username}/Library/Android/sdk/ndk-bundle 10 | sdk.dir=/Users/{username}/Library/Android/sdk 11 | ``` 12 | 3. Delete the `maven` folder 13 | 4. Run `./gradlew installArchives` 14 | 5. Verify that latest set of generated files is in the maven folder with the correct version number 15 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // android/build.gradle 2 | 3 | // based on: 4 | // 5 | // * https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle 6 | // previous location: 7 | // - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/build.gradle 8 | // 9 | // * https://github.com/facebook/react-native/blob/0.60-stable/template/android/app/build.gradle 10 | // previous location: 11 | // - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle 12 | 13 | // These defaults should reflect the SDK versions used by 14 | // the minimum React Native version supported. 15 | def DEFAULT_COMPILE_SDK_VERSION = 28 16 | def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3' 17 | def DEFAULT_MIN_SDK_VERSION = 16 18 | def DEFAULT_TARGET_SDK_VERSION = 28 19 | 20 | def safeExtGet(prop, fallback) { 21 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback 22 | } 23 | 24 | apply plugin: 'com.android.library' 25 | apply plugin: 'maven' 26 | 27 | buildscript { 28 | // The Android Gradle plugin is only required when opening the android folder stand-alone. 29 | // This avoids unnecessary downloads and potential conflicts when the library is included as a 30 | // module dependency in an application project. 31 | // ref: https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#sec:build_script_external_dependencies 32 | if (project == rootProject) { 33 | repositories { 34 | google() 35 | } 36 | dependencies { 37 | // This should reflect the Gradle plugin version used by 38 | // the minimum React Native version supported. 39 | classpath 'com.android.tools.build:gradle:3.4.1' 40 | } 41 | } 42 | } 43 | 44 | android { 45 | compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION) 46 | buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION) 47 | defaultConfig { 48 | minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION) 49 | targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION) 50 | versionCode 1 51 | versionName "1.0" 52 | } 53 | lintOptions { 54 | abortOnError false 55 | } 56 | } 57 | 58 | repositories { 59 | // ref: https://www.baeldung.com/maven-local-repository 60 | mavenLocal() 61 | maven { 62 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 63 | url "$rootDir/../node_modules/react-native/android" 64 | } 65 | maven { 66 | // Android JSC is installed from npm 67 | url "$rootDir/../node_modules/jsc-android/dist" 68 | } 69 | google() 70 | } 71 | 72 | dependencies { 73 | //noinspection GradleDynamicVersion 74 | implementation 'com.facebook.react:react-native:+' // From node_modules 75 | } 76 | 77 | def configureReactNativePom(def pom) { 78 | def packageJson = new groovy.json.JsonSlurper().parseText(file('../package.json').text) 79 | 80 | pom.project { 81 | name packageJson.title 82 | artifactId packageJson.name 83 | version = packageJson.version 84 | group = "com.reactlibrary" 85 | description packageJson.description 86 | url packageJson.repository.baseUrl 87 | 88 | licenses { 89 | license { 90 | name packageJson.license 91 | url packageJson.repository.baseUrl + '/blob/master/' + packageJson.licenseFilename 92 | distribution 'repo' 93 | } 94 | } 95 | 96 | developers { 97 | developer { 98 | id packageJson.author.username 99 | name packageJson.author.name 100 | } 101 | } 102 | } 103 | } 104 | 105 | afterEvaluate { project -> 106 | // some Gradle build hooks ref: 107 | // https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html 108 | task androidJavadoc(type: Javadoc) { 109 | source = android.sourceSets.main.java.srcDirs 110 | classpath += files(android.bootClasspath) 111 | classpath += files(project.getConfigurations().getByName('compile').asList()) 112 | include '**/*.java' 113 | } 114 | 115 | task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) { 116 | classifier = 'javadoc' 117 | from androidJavadoc.destinationDir 118 | } 119 | 120 | task androidSourcesJar(type: Jar) { 121 | classifier = 'sources' 122 | from android.sourceSets.main.java.srcDirs 123 | include '**/*.java' 124 | } 125 | 126 | android.libraryVariants.all { variant -> 127 | def name = variant.name.capitalize() 128 | def javaCompileTask = variant.javaCompileProvider.get() 129 | 130 | task "jar${name}"(type: Jar, dependsOn: javaCompileTask) { 131 | from javaCompileTask.destinationDir 132 | } 133 | } 134 | 135 | artifacts { 136 | archives androidSourcesJar 137 | archives androidJavadocJar 138 | } 139 | 140 | task installArchives(type: Upload) { 141 | configuration = configurations.archives 142 | repositories.mavenDeployer { 143 | // Deploy to react-native-event-bridge/maven, ready to publish to npm 144 | repository url: "file://${projectDir}/../android/maven" 145 | configureReactNativePom pom 146 | } 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /android/src/main/java/com/reactlibrary/RnTosspaymentsModule.java: -------------------------------------------------------------------------------- 1 | // RnTosspaymentsModule.java 2 | 3 | package com.reactlibrary; 4 | 5 | import com.facebook.react.bridge.ReactApplicationContext; 6 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 7 | import com.facebook.react.bridge.ReactMethod; 8 | import com.facebook.react.bridge.Callback; 9 | 10 | public class RnTosspaymentsModule extends ReactContextBaseJavaModule { 11 | 12 | private final ReactApplicationContext reactContext; 13 | 14 | public RnTosspaymentsModule(ReactApplicationContext reactContext) { 15 | super(reactContext); 16 | this.reactContext = reactContext; 17 | } 18 | 19 | @Override 20 | public String getName() { 21 | return "RnTosspayments"; 22 | } 23 | 24 | @ReactMethod 25 | public void sampleMethod(String stringArgument, int numberArgument, Callback callback) { 26 | // TODO: Implement some actually useful functionality 27 | callback.invoke("Received numberArgument: " + numberArgument + " stringArgument: " + stringArgument); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /android/src/main/java/com/reactlibrary/RnTosspaymentsPackage.java: -------------------------------------------------------------------------------- 1 | // RnTosspaymentsPackage.java 2 | 3 | package com.reactlibrary; 4 | 5 | import java.util.Arrays; 6 | import java.util.Collections; 7 | import java.util.List; 8 | 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.bridge.NativeModule; 11 | import com.facebook.react.bridge.ReactApplicationContext; 12 | import com.facebook.react.uimanager.ViewManager; 13 | 14 | public class RnTosspaymentsPackage implements ReactPackage { 15 | @Override 16 | public List createNativeModules(ReactApplicationContext reactContext) { 17 | return Arrays.asList(new RnTosspaymentsModule(reactContext)); 18 | } 19 | 20 | @Override 21 | public List createViewManagers(ReactApplicationContext reactContext) { 22 | return Collections.emptyList(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /callback.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /example/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /example/.editorconfig: -------------------------------------------------------------------------------- 1 | # Windows files 2 | [*.bat] 3 | end_of_line = crlf 4 | -------------------------------------------------------------------------------- /example/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /example/.gitattributes: -------------------------------------------------------------------------------- 1 | # Windows files should use crlf line endings 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | *.bat text eol=crlf 4 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | -------------------------------------------------------------------------------- /example/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | arrowParens: 'avoid', 7 | }; 8 | -------------------------------------------------------------------------------- /example/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /example/App.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * Generated with the TypeScript template 6 | * https://github.com/react-native-community/react-native-template-typescript 7 | * 8 | * @format 9 | */ 10 | declare const App: () => JSX.Element; 11 | export default App; 12 | -------------------------------------------------------------------------------- /example/App.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"App.js","sourceRoot":"","sources":["App.tsx"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEF,0DAA0B;AAC1B,+CAQsB;AAEtB,sEAM6C;AAE7C,MAAM,OAAO,GAER,CAAC,EAAC,QAAQ,EAAE,KAAK,EAAC,EAAE,EAAE;IACzB,MAAM,UAAU,GAAG,6BAAc,EAAE,KAAK,MAAM,CAAC;IAC/C,OAAO,CACL,8BAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,gBAAgB;QAClC,8BAAC,mBAAI,IACH,KAAK,EAAE;gBACL,MAAM,CAAC,YAAY;gBACnB;oBACE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,qBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAM,CAAC,KAAK;iBAChD;aACF,IACA,KAAK,CACD;QACP,8BAAC,mBAAI,IACH,KAAK,EAAE;gBACL,MAAM,CAAC,kBAAkB;gBACzB;oBACE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,qBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAM,CAAC,IAAI;iBAC/C;aACF,IACA,QAAQ,CACJ,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,GAAG,GAAG,GAAG,EAAE;IACf,MAAM,UAAU,GAAG,6BAAc,EAAE,KAAK,MAAM,CAAC;IAE/C,MAAM,eAAe,GAAG;QACtB,eAAe,EAAE,UAAU,CAAC,CAAC,CAAC,qBAAM,CAAC,MAAM,CAAC,CAAC,CAAC,qBAAM,CAAC,OAAO;KAC7D,CAAC;IAEF,OAAO,CACL,8BAAC,2BAAY,IAAC,KAAK,EAAE,eAAe;QAClC,8BAAC,wBAAS,IAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,GAAI;QACtE,8BAAC,yBAAU,IACT,8BAA8B,EAAC,WAAW,EAC1C,KAAK,EAAE,eAAe;YACtB,8BAAC,qBAAM,OAAG;YACV,8BAAC,mBAAI,IACH,KAAK,EAAE;oBACL,eAAe,EAAE,UAAU,CAAC,CAAC,CAAC,qBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAM,CAAC,KAAK;iBAC1D;gBACD,8BAAC,OAAO,IAAC,KAAK,EAAC,UAAU;;oBAClB,8BAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,aAAe;mFAEzC;gBACV,8BAAC,OAAO,IAAC,KAAK,EAAC,kBAAkB;oBAC/B,8BAAC,iCAAkB,OAAG,CACd;gBACV,8BAAC,OAAO,IAAC,KAAK,EAAC,OAAO;oBACpB,8BAAC,gCAAiB,OAAG,CACb;gBACV,8BAAC,OAAO,IAAC,KAAK,EAAC,YAAY,iDAEjB;gBACV,8BAAC,6BAAc,OAAG,CACb,CACI,CACA,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,gBAAgB,EAAE;QAChB,SAAS,EAAE,EAAE;QACb,iBAAiB,EAAE,EAAE;KACtB;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;IACD,kBAAkB,EAAE;QAClB,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;IACD,SAAS,EAAE;QACT,UAAU,EAAE,KAAK;KAClB;CACF,CAAC,CAAC;AAEH,kBAAe,GAAG,CAAC"} -------------------------------------------------------------------------------- /example/App.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * Generated with the TypeScript template 6 | * https://github.com/react-native-community/react-native-template-typescript 7 | * 8 | * @format 9 | */ 10 | 11 | import React from 'react'; 12 | import {Alert, SafeAreaView} from 'react-native'; 13 | import Payments from 'tosspayments-react-native'; 14 | 15 | const App = () => { 16 | return ( 17 | 18 | Alert.alert('결제 성공', JSON.stringify(data))} 24 | onError={error => Alert.alert('결제 실패', JSON.stringify(error))} 25 | /> 26 | 27 | ); 28 | }; 29 | 30 | export default App; 31 | -------------------------------------------------------------------------------- /example/__tests__/App-test.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /example/android/app/_BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.tosspaymentsexample", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.tosspaymentsexample", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation. If none specified and 19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 20 | * // default. Can be overridden with ENTRY_FILE environment variable. 21 | * entryFile: "index.android.js", 22 | * 23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 24 | * bundleCommand: "ram-bundle", 25 | * 26 | * // whether to bundle JS and assets in debug mode 27 | * bundleInDebug: false, 28 | * 29 | * // whether to bundle JS and assets in release mode 30 | * bundleInRelease: true, 31 | * 32 | * // whether to bundle JS and assets in another build variant (if configured). 33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 34 | * // The configuration property can be in the following formats 35 | * // 'bundleIn${productFlavor}${buildType}' 36 | * // 'bundleIn${buildType}' 37 | * // bundleInFreeDebug: true, 38 | * // bundleInPaidRelease: true, 39 | * // bundleInBeta: true, 40 | * 41 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 42 | * // for example: to disable dev mode in the staging build type (if configured) 43 | * devDisabledInStaging: true, 44 | * // The configuration property can be in the following formats 45 | * // 'devDisabledIn${productFlavor}${buildType}' 46 | * // 'devDisabledIn${buildType}' 47 | * 48 | * // the root of your project, i.e. where "package.json" lives 49 | * root: "../../", 50 | * 51 | * // where to put the JS bundle asset in debug mode 52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 53 | * 54 | * // where to put the JS bundle asset in release mode 55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 56 | * 57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 58 | * // require('./image.png')), in debug mode 59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 60 | * 61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 62 | * // require('./image.png')), in release mode 63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 64 | * 65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 69 | * // for example, you might want to remove it from here. 70 | * inputExcludes: ["android/**", "ios/**"], 71 | * 72 | * // override which node gets called and with what additional arguments 73 | * nodeExecutableAndArgs: ["node"], 74 | * 75 | * // supply additional arguments to the packager 76 | * extraPackagerArgs: [] 77 | * ] 78 | */ 79 | 80 | project.ext.react = [ 81 | enableHermes: false, // clean and rebuild if changing 82 | ] 83 | 84 | apply from: "../../node_modules/react-native/react.gradle" 85 | 86 | /** 87 | * Set this to true to create two separate APKs instead of one: 88 | * - An APK that only works on ARM devices 89 | * - An APK that only works on x86 devices 90 | * The advantage is the size of the APK is reduced by about 4MB. 91 | * Upload all the APKs to the Play Store and people will download 92 | * the correct one based on the CPU architecture of their device. 93 | */ 94 | def enableSeparateBuildPerCPUArchitecture = false 95 | 96 | /** 97 | * Run Proguard to shrink the Java bytecode in release builds. 98 | */ 99 | def enableProguardInReleaseBuilds = false 100 | 101 | /** 102 | * The preferred build flavor of JavaScriptCore. 103 | * 104 | * For example, to use the international variant, you can use: 105 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 106 | * 107 | * The international variant includes ICU i18n library and necessary data 108 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 109 | * give correct results when using with locales other than en-US. Note that 110 | * this variant is about 6MiB larger per architecture than default. 111 | */ 112 | def jscFlavor = 'org.webkit:android-jsc:+' 113 | 114 | /** 115 | * Whether to enable the Hermes VM. 116 | * 117 | * This should be set on project.ext.react and mirrored here. If it is not set 118 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 119 | * and the benefits of using Hermes will therefore be sharply reduced. 120 | */ 121 | def enableHermes = project.ext.react.get("enableHermes", false); 122 | 123 | android { 124 | ndkVersion rootProject.ext.ndkVersion 125 | 126 | compileSdkVersion rootProject.ext.compileSdkVersion 127 | 128 | compileOptions { 129 | sourceCompatibility JavaVersion.VERSION_1_8 130 | targetCompatibility JavaVersion.VERSION_1_8 131 | } 132 | 133 | defaultConfig { 134 | applicationId "com.tosspaymentsexample" 135 | minSdkVersion rootProject.ext.minSdkVersion 136 | targetSdkVersion rootProject.ext.targetSdkVersion 137 | versionCode 1 138 | versionName "1.0" 139 | } 140 | splits { 141 | abi { 142 | reset() 143 | enable enableSeparateBuildPerCPUArchitecture 144 | universalApk false // If true, also generate a universal APK 145 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 146 | } 147 | } 148 | signingConfigs { 149 | debug { 150 | storeFile file('debug.keystore') 151 | storePassword 'android' 152 | keyAlias 'androiddebugkey' 153 | keyPassword 'android' 154 | } 155 | } 156 | buildTypes { 157 | debug { 158 | signingConfig signingConfigs.debug 159 | } 160 | release { 161 | // Caution! In production, you need to generate your own keystore file. 162 | // see https://reactnative.dev/docs/signed-apk-android. 163 | signingConfig signingConfigs.debug 164 | minifyEnabled enableProguardInReleaseBuilds 165 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 166 | } 167 | } 168 | 169 | // applicationVariants are e.g. debug, release 170 | applicationVariants.all { variant -> 171 | variant.outputs.each { output -> 172 | // For each separate APK per architecture, set a unique version code as described here: 173 | // https://developer.android.com/studio/build/configure-apk-splits.html 174 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. 175 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 176 | def abi = output.getFilter(OutputFile.ABI) 177 | if (abi != null) { // null for the universal-debug, universal-release variants 178 | output.versionCodeOverride = 179 | defaultConfig.versionCode * 1000 + versionCodes.get(abi) 180 | } 181 | 182 | } 183 | } 184 | } 185 | 186 | dependencies { 187 | implementation fileTree(dir: "libs", include: ["*.jar"]) 188 | //noinspection GradleDynamicVersion 189 | implementation "com.facebook.react:react-native:+" // From node_modules 190 | 191 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 192 | 193 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 194 | exclude group:'com.facebook.fbjni' 195 | } 196 | 197 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 198 | exclude group:'com.facebook.flipper' 199 | exclude group:'com.squareup.okhttp3', module:'okhttp' 200 | } 201 | 202 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 203 | exclude group:'com.facebook.flipper' 204 | } 205 | 206 | if (enableHermes) { 207 | def hermesPath = "../../node_modules/hermes-engine/android/"; 208 | debugImplementation files(hermesPath + "hermes-debug.aar") 209 | releaseImplementation files(hermesPath + "hermes-release.aar") 210 | } else { 211 | implementation jscFlavor 212 | } 213 | } 214 | 215 | // Run this once to be able to run the application with BUCK 216 | // puts all compile dependencies into folder libs for BUCK to use 217 | task copyDownloadableDepsToLibs(type: Copy) { 218 | from configurations.compile 219 | into 'libs' 220 | } 221 | 222 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 223 | -------------------------------------------------------------------------------- /example/android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /example/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/app/debug.keystore -------------------------------------------------------------------------------- /example/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /example/android/app/src/debug/java/com/tosspaymentsexample/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.tosspaymentsexample; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | 32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 33 | client.addPlugin(new ReactFlipperPlugin()); 34 | client.addPlugin(new DatabasesFlipperPlugin(context)); 35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 36 | client.addPlugin(CrashReporterPlugin.getInstance()); 37 | 38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 39 | NetworkingModule.setCustomClientBuilder( 40 | new NetworkingModule.CustomClientBuilder() { 41 | @Override 42 | public void apply(OkHttpClient.Builder builder) { 43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 44 | } 45 | }); 46 | client.addPlugin(networkFlipperPlugin); 47 | client.start(); 48 | 49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 50 | // Hence we run if after all native modules have been initialized 51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 52 | if (reactContext == null) { 53 | reactInstanceManager.addReactInstanceEventListener( 54 | new ReactInstanceManager.ReactInstanceEventListener() { 55 | @Override 56 | public void onReactContextInitialized(ReactContext reactContext) { 57 | reactInstanceManager.removeReactInstanceEventListener(this); 58 | reactContext.runOnNativeModulesQueueThread( 59 | new Runnable() { 60 | @Override 61 | public void run() { 62 | client.addPlugin(new FrescoFlipperPlugin()); 63 | } 64 | }); 65 | } 66 | }); 67 | } else { 68 | client.addPlugin(new FrescoFlipperPlugin()); 69 | } 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/tosspaymentsexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.tosspaymentsexample; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "TosspaymentsExample"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/tosspaymentsexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.tosspaymentsexample; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | import java.lang.reflect.InvocationTargetException; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = 17 | new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | @SuppressWarnings("UnnecessaryLocalVariable") 26 | List packages = new PackageList(this).getPackages(); 27 | // Packages that cannot be autolinked yet can be added manually here, for example: 28 | // packages.add(new MyReactNativePackage()); 29 | return packages; 30 | } 31 | 32 | @Override 33 | protected String getJSMainModuleName() { 34 | return "index"; 35 | } 36 | }; 37 | 38 | @Override 39 | public ReactNativeHost getReactNativeHost() { 40 | return mReactNativeHost; 41 | } 42 | 43 | @Override 44 | public void onCreate() { 45 | super.onCreate(); 46 | SoLoader.init(this, /* native exopackage */ false); 47 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 48 | } 49 | 50 | /** 51 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 52 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 53 | * 54 | * @param context 55 | * @param reactInstanceManager 56 | */ 57 | private static void initializeFlipper( 58 | Context context, ReactInstanceManager reactInstanceManager) { 59 | if (BuildConfig.DEBUG) { 60 | try { 61 | /* 62 | We use reflection here to pick up the class that initializes Flipper, 63 | since Flipper library is not available in release mode 64 | */ 65 | Class aClass = Class.forName("com.tosspaymentsexample.ReactNativeFlipper"); 66 | aClass 67 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 68 | .invoke(null, context, reactInstanceManager); 69 | } catch (ClassNotFoundException e) { 70 | e.printStackTrace(); 71 | } catch (NoSuchMethodException e) { 72 | e.printStackTrace(); 73 | } catch (IllegalAccessException e) { 74 | e.printStackTrace(); 75 | } catch (InvocationTargetException e) { 76 | e.printStackTrace(); 77 | } 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TosspaymentsExample 3 | 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "29.0.3" 6 | minSdkVersion = 21 7 | compileSdkVersion = 29 8 | targetSdkVersion = 29 9 | ndkVersion = "20.1.5948944" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:4.1.0") 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 27 | url("$rootDir/../node_modules/react-native/android") 28 | } 29 | maven { 30 | // Android JSC is installed from npm 31 | url("$rootDir/../node_modules/jsc-android/dist") 32 | } 33 | 34 | google() 35 | jcenter() 36 | maven { url 'https://www.jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.75.1 29 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seungminio/tosspayments-react-native/a87427de963acd569d3c5fb795ee688fa1d2709e/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /example/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /example/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TosspaymentsExample' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TosspaymentsExample", 3 | "displayName": "TosspaymentsExample" 4 | } -------------------------------------------------------------------------------- /example/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '10.0' 5 | 6 | target 'TosspaymentsExample' do 7 | config = use_native_modules! 8 | 9 | use_react_native!( 10 | :path => config[:reactNativePath], 11 | # to enable hermes on iOS, change `false` to `true` and then install pods 12 | :hermes_enabled => false 13 | ) 14 | 15 | target 'TosspaymentsExampleTests' do 16 | inherit! :complete 17 | # Pods for testing 18 | end 19 | 20 | # Enables Flipper. 21 | # 22 | # Note that if you have use_frameworks! enabled, Flipper will not work and 23 | # you should disable the next line. 24 | use_flipper!() 25 | 26 | post_install do |installer| 27 | react_native_post_install(installer) 28 | end 29 | end -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - CocoaAsyncSocket (7.6.5) 4 | - DoubleConversion (1.1.6) 5 | - FBLazyVector (0.64.0) 6 | - FBReactNativeSpec (0.64.0): 7 | - RCT-Folly (= 2020.01.13.00) 8 | - RCTRequired (= 0.64.0) 9 | - RCTTypeSafety (= 0.64.0) 10 | - React-Core (= 0.64.0) 11 | - React-jsi (= 0.64.0) 12 | - ReactCommon/turbomodule/core (= 0.64.0) 13 | - Flipper (0.75.1): 14 | - Flipper-Folly (~> 2.5) 15 | - Flipper-RSocket (~> 1.3) 16 | - Flipper-DoubleConversion (1.1.7) 17 | - Flipper-Folly (2.5.1): 18 | - boost-for-react-native 19 | - Flipper-DoubleConversion 20 | - Flipper-Glog 21 | - libevent (~> 2.1.12) 22 | - OpenSSL-Universal (= 1.1.180) 23 | - Flipper-Glog (0.3.6) 24 | - Flipper-PeerTalk (0.0.4) 25 | - Flipper-RSocket (1.3.0): 26 | - Flipper-Folly (~> 2.5) 27 | - FlipperKit (0.75.1): 28 | - FlipperKit/Core (= 0.75.1) 29 | - FlipperKit/Core (0.75.1): 30 | - Flipper (~> 0.75.1) 31 | - FlipperKit/CppBridge 32 | - FlipperKit/FBCxxFollyDynamicConvert 33 | - FlipperKit/FBDefines 34 | - FlipperKit/FKPortForwarding 35 | - FlipperKit/CppBridge (0.75.1): 36 | - Flipper (~> 0.75.1) 37 | - FlipperKit/FBCxxFollyDynamicConvert (0.75.1): 38 | - Flipper-Folly (~> 2.5) 39 | - FlipperKit/FBDefines (0.75.1) 40 | - FlipperKit/FKPortForwarding (0.75.1): 41 | - CocoaAsyncSocket (~> 7.6) 42 | - Flipper-PeerTalk (~> 0.0.4) 43 | - FlipperKit/FlipperKitHighlightOverlay (0.75.1) 44 | - FlipperKit/FlipperKitLayoutPlugin (0.75.1): 45 | - FlipperKit/Core 46 | - FlipperKit/FlipperKitHighlightOverlay 47 | - FlipperKit/FlipperKitLayoutTextSearchable 48 | - YogaKit (~> 1.18) 49 | - FlipperKit/FlipperKitLayoutTextSearchable (0.75.1) 50 | - FlipperKit/FlipperKitNetworkPlugin (0.75.1): 51 | - FlipperKit/Core 52 | - FlipperKit/FlipperKitReactPlugin (0.75.1): 53 | - FlipperKit/Core 54 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.75.1): 55 | - FlipperKit/Core 56 | - FlipperKit/SKIOSNetworkPlugin (0.75.1): 57 | - FlipperKit/Core 58 | - FlipperKit/FlipperKitNetworkPlugin 59 | - glog (0.3.5) 60 | - libevent (2.1.12) 61 | - OpenSSL-Universal (1.1.180) 62 | - RCT-Folly (2020.01.13.00): 63 | - boost-for-react-native 64 | - DoubleConversion 65 | - glog 66 | - RCT-Folly/Default (= 2020.01.13.00) 67 | - RCT-Folly/Default (2020.01.13.00): 68 | - boost-for-react-native 69 | - DoubleConversion 70 | - glog 71 | - RCTRequired (0.64.0) 72 | - RCTTypeSafety (0.64.0): 73 | - FBLazyVector (= 0.64.0) 74 | - RCT-Folly (= 2020.01.13.00) 75 | - RCTRequired (= 0.64.0) 76 | - React-Core (= 0.64.0) 77 | - React (0.64.0): 78 | - React-Core (= 0.64.0) 79 | - React-Core/DevSupport (= 0.64.0) 80 | - React-Core/RCTWebSocket (= 0.64.0) 81 | - React-RCTActionSheet (= 0.64.0) 82 | - React-RCTAnimation (= 0.64.0) 83 | - React-RCTBlob (= 0.64.0) 84 | - React-RCTImage (= 0.64.0) 85 | - React-RCTLinking (= 0.64.0) 86 | - React-RCTNetwork (= 0.64.0) 87 | - React-RCTSettings (= 0.64.0) 88 | - React-RCTText (= 0.64.0) 89 | - React-RCTVibration (= 0.64.0) 90 | - React-callinvoker (0.64.0) 91 | - React-Core (0.64.0): 92 | - glog 93 | - RCT-Folly (= 2020.01.13.00) 94 | - React-Core/Default (= 0.64.0) 95 | - React-cxxreact (= 0.64.0) 96 | - React-jsi (= 0.64.0) 97 | - React-jsiexecutor (= 0.64.0) 98 | - React-perflogger (= 0.64.0) 99 | - Yoga 100 | - React-Core/CoreModulesHeaders (0.64.0): 101 | - glog 102 | - RCT-Folly (= 2020.01.13.00) 103 | - React-Core/Default 104 | - React-cxxreact (= 0.64.0) 105 | - React-jsi (= 0.64.0) 106 | - React-jsiexecutor (= 0.64.0) 107 | - React-perflogger (= 0.64.0) 108 | - Yoga 109 | - React-Core/Default (0.64.0): 110 | - glog 111 | - RCT-Folly (= 2020.01.13.00) 112 | - React-cxxreact (= 0.64.0) 113 | - React-jsi (= 0.64.0) 114 | - React-jsiexecutor (= 0.64.0) 115 | - React-perflogger (= 0.64.0) 116 | - Yoga 117 | - React-Core/DevSupport (0.64.0): 118 | - glog 119 | - RCT-Folly (= 2020.01.13.00) 120 | - React-Core/Default (= 0.64.0) 121 | - React-Core/RCTWebSocket (= 0.64.0) 122 | - React-cxxreact (= 0.64.0) 123 | - React-jsi (= 0.64.0) 124 | - React-jsiexecutor (= 0.64.0) 125 | - React-jsinspector (= 0.64.0) 126 | - React-perflogger (= 0.64.0) 127 | - Yoga 128 | - React-Core/RCTActionSheetHeaders (0.64.0): 129 | - glog 130 | - RCT-Folly (= 2020.01.13.00) 131 | - React-Core/Default 132 | - React-cxxreact (= 0.64.0) 133 | - React-jsi (= 0.64.0) 134 | - React-jsiexecutor (= 0.64.0) 135 | - React-perflogger (= 0.64.0) 136 | - Yoga 137 | - React-Core/RCTAnimationHeaders (0.64.0): 138 | - glog 139 | - RCT-Folly (= 2020.01.13.00) 140 | - React-Core/Default 141 | - React-cxxreact (= 0.64.0) 142 | - React-jsi (= 0.64.0) 143 | - React-jsiexecutor (= 0.64.0) 144 | - React-perflogger (= 0.64.0) 145 | - Yoga 146 | - React-Core/RCTBlobHeaders (0.64.0): 147 | - glog 148 | - RCT-Folly (= 2020.01.13.00) 149 | - React-Core/Default 150 | - React-cxxreact (= 0.64.0) 151 | - React-jsi (= 0.64.0) 152 | - React-jsiexecutor (= 0.64.0) 153 | - React-perflogger (= 0.64.0) 154 | - Yoga 155 | - React-Core/RCTImageHeaders (0.64.0): 156 | - glog 157 | - RCT-Folly (= 2020.01.13.00) 158 | - React-Core/Default 159 | - React-cxxreact (= 0.64.0) 160 | - React-jsi (= 0.64.0) 161 | - React-jsiexecutor (= 0.64.0) 162 | - React-perflogger (= 0.64.0) 163 | - Yoga 164 | - React-Core/RCTLinkingHeaders (0.64.0): 165 | - glog 166 | - RCT-Folly (= 2020.01.13.00) 167 | - React-Core/Default 168 | - React-cxxreact (= 0.64.0) 169 | - React-jsi (= 0.64.0) 170 | - React-jsiexecutor (= 0.64.0) 171 | - React-perflogger (= 0.64.0) 172 | - Yoga 173 | - React-Core/RCTNetworkHeaders (0.64.0): 174 | - glog 175 | - RCT-Folly (= 2020.01.13.00) 176 | - React-Core/Default 177 | - React-cxxreact (= 0.64.0) 178 | - React-jsi (= 0.64.0) 179 | - React-jsiexecutor (= 0.64.0) 180 | - React-perflogger (= 0.64.0) 181 | - Yoga 182 | - React-Core/RCTSettingsHeaders (0.64.0): 183 | - glog 184 | - RCT-Folly (= 2020.01.13.00) 185 | - React-Core/Default 186 | - React-cxxreact (= 0.64.0) 187 | - React-jsi (= 0.64.0) 188 | - React-jsiexecutor (= 0.64.0) 189 | - React-perflogger (= 0.64.0) 190 | - Yoga 191 | - React-Core/RCTTextHeaders (0.64.0): 192 | - glog 193 | - RCT-Folly (= 2020.01.13.00) 194 | - React-Core/Default 195 | - React-cxxreact (= 0.64.0) 196 | - React-jsi (= 0.64.0) 197 | - React-jsiexecutor (= 0.64.0) 198 | - React-perflogger (= 0.64.0) 199 | - Yoga 200 | - React-Core/RCTVibrationHeaders (0.64.0): 201 | - glog 202 | - RCT-Folly (= 2020.01.13.00) 203 | - React-Core/Default 204 | - React-cxxreact (= 0.64.0) 205 | - React-jsi (= 0.64.0) 206 | - React-jsiexecutor (= 0.64.0) 207 | - React-perflogger (= 0.64.0) 208 | - Yoga 209 | - React-Core/RCTWebSocket (0.64.0): 210 | - glog 211 | - RCT-Folly (= 2020.01.13.00) 212 | - React-Core/Default (= 0.64.0) 213 | - React-cxxreact (= 0.64.0) 214 | - React-jsi (= 0.64.0) 215 | - React-jsiexecutor (= 0.64.0) 216 | - React-perflogger (= 0.64.0) 217 | - Yoga 218 | - React-CoreModules (0.64.0): 219 | - FBReactNativeSpec (= 0.64.0) 220 | - RCT-Folly (= 2020.01.13.00) 221 | - RCTTypeSafety (= 0.64.0) 222 | - React-Core/CoreModulesHeaders (= 0.64.0) 223 | - React-jsi (= 0.64.0) 224 | - React-RCTImage (= 0.64.0) 225 | - ReactCommon/turbomodule/core (= 0.64.0) 226 | - React-cxxreact (0.64.0): 227 | - boost-for-react-native (= 1.63.0) 228 | - DoubleConversion 229 | - glog 230 | - RCT-Folly (= 2020.01.13.00) 231 | - React-callinvoker (= 0.64.0) 232 | - React-jsi (= 0.64.0) 233 | - React-jsinspector (= 0.64.0) 234 | - React-perflogger (= 0.64.0) 235 | - React-runtimeexecutor (= 0.64.0) 236 | - React-jsi (0.64.0): 237 | - boost-for-react-native (= 1.63.0) 238 | - DoubleConversion 239 | - glog 240 | - RCT-Folly (= 2020.01.13.00) 241 | - React-jsi/Default (= 0.64.0) 242 | - React-jsi/Default (0.64.0): 243 | - boost-for-react-native (= 1.63.0) 244 | - DoubleConversion 245 | - glog 246 | - RCT-Folly (= 2020.01.13.00) 247 | - React-jsiexecutor (0.64.0): 248 | - DoubleConversion 249 | - glog 250 | - RCT-Folly (= 2020.01.13.00) 251 | - React-cxxreact (= 0.64.0) 252 | - React-jsi (= 0.64.0) 253 | - React-perflogger (= 0.64.0) 254 | - React-jsinspector (0.64.0) 255 | - react-native-webview (11.3.2): 256 | - React-Core 257 | - React-perflogger (0.64.0) 258 | - React-RCTActionSheet (0.64.0): 259 | - React-Core/RCTActionSheetHeaders (= 0.64.0) 260 | - React-RCTAnimation (0.64.0): 261 | - FBReactNativeSpec (= 0.64.0) 262 | - RCT-Folly (= 2020.01.13.00) 263 | - RCTTypeSafety (= 0.64.0) 264 | - React-Core/RCTAnimationHeaders (= 0.64.0) 265 | - React-jsi (= 0.64.0) 266 | - ReactCommon/turbomodule/core (= 0.64.0) 267 | - React-RCTBlob (0.64.0): 268 | - FBReactNativeSpec (= 0.64.0) 269 | - RCT-Folly (= 2020.01.13.00) 270 | - React-Core/RCTBlobHeaders (= 0.64.0) 271 | - React-Core/RCTWebSocket (= 0.64.0) 272 | - React-jsi (= 0.64.0) 273 | - React-RCTNetwork (= 0.64.0) 274 | - ReactCommon/turbomodule/core (= 0.64.0) 275 | - React-RCTImage (0.64.0): 276 | - FBReactNativeSpec (= 0.64.0) 277 | - RCT-Folly (= 2020.01.13.00) 278 | - RCTTypeSafety (= 0.64.0) 279 | - React-Core/RCTImageHeaders (= 0.64.0) 280 | - React-jsi (= 0.64.0) 281 | - React-RCTNetwork (= 0.64.0) 282 | - ReactCommon/turbomodule/core (= 0.64.0) 283 | - React-RCTLinking (0.64.0): 284 | - FBReactNativeSpec (= 0.64.0) 285 | - React-Core/RCTLinkingHeaders (= 0.64.0) 286 | - React-jsi (= 0.64.0) 287 | - ReactCommon/turbomodule/core (= 0.64.0) 288 | - React-RCTNetwork (0.64.0): 289 | - FBReactNativeSpec (= 0.64.0) 290 | - RCT-Folly (= 2020.01.13.00) 291 | - RCTTypeSafety (= 0.64.0) 292 | - React-Core/RCTNetworkHeaders (= 0.64.0) 293 | - React-jsi (= 0.64.0) 294 | - ReactCommon/turbomodule/core (= 0.64.0) 295 | - React-RCTSettings (0.64.0): 296 | - FBReactNativeSpec (= 0.64.0) 297 | - RCT-Folly (= 2020.01.13.00) 298 | - RCTTypeSafety (= 0.64.0) 299 | - React-Core/RCTSettingsHeaders (= 0.64.0) 300 | - React-jsi (= 0.64.0) 301 | - ReactCommon/turbomodule/core (= 0.64.0) 302 | - React-RCTText (0.64.0): 303 | - React-Core/RCTTextHeaders (= 0.64.0) 304 | - React-RCTVibration (0.64.0): 305 | - FBReactNativeSpec (= 0.64.0) 306 | - RCT-Folly (= 2020.01.13.00) 307 | - React-Core/RCTVibrationHeaders (= 0.64.0) 308 | - React-jsi (= 0.64.0) 309 | - ReactCommon/turbomodule/core (= 0.64.0) 310 | - React-runtimeexecutor (0.64.0): 311 | - React-jsi (= 0.64.0) 312 | - ReactCommon/turbomodule/core (0.64.0): 313 | - DoubleConversion 314 | - glog 315 | - RCT-Folly (= 2020.01.13.00) 316 | - React-callinvoker (= 0.64.0) 317 | - React-Core (= 0.64.0) 318 | - React-cxxreact (= 0.64.0) 319 | - React-jsi (= 0.64.0) 320 | - React-perflogger (= 0.64.0) 321 | - tosspayments-react-native (1.0.4): 322 | - React 323 | - Yoga (1.14.0) 324 | - YogaKit (1.18.1): 325 | - Yoga (~> 1.14) 326 | 327 | DEPENDENCIES: 328 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 329 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 330 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 331 | - Flipper (~> 0.75.1) 332 | - Flipper-DoubleConversion (= 1.1.7) 333 | - Flipper-Folly (~> 2.5) 334 | - Flipper-Glog (= 0.3.6) 335 | - Flipper-PeerTalk (~> 0.0.4) 336 | - Flipper-RSocket (~> 1.3) 337 | - FlipperKit (~> 0.75.1) 338 | - FlipperKit/Core (~> 0.75.1) 339 | - FlipperKit/CppBridge (~> 0.75.1) 340 | - FlipperKit/FBCxxFollyDynamicConvert (~> 0.75.1) 341 | - FlipperKit/FBDefines (~> 0.75.1) 342 | - FlipperKit/FKPortForwarding (~> 0.75.1) 343 | - FlipperKit/FlipperKitHighlightOverlay (~> 0.75.1) 344 | - FlipperKit/FlipperKitLayoutPlugin (~> 0.75.1) 345 | - FlipperKit/FlipperKitLayoutTextSearchable (~> 0.75.1) 346 | - FlipperKit/FlipperKitNetworkPlugin (~> 0.75.1) 347 | - FlipperKit/FlipperKitReactPlugin (~> 0.75.1) 348 | - FlipperKit/FlipperKitUserDefaultsPlugin (~> 0.75.1) 349 | - FlipperKit/SKIOSNetworkPlugin (~> 0.75.1) 350 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 351 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 352 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 353 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 354 | - React (from `../node_modules/react-native/`) 355 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 356 | - React-Core (from `../node_modules/react-native/`) 357 | - React-Core/DevSupport (from `../node_modules/react-native/`) 358 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 359 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 360 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 361 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 362 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 363 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 364 | - react-native-webview (from `../node_modules/react-native-webview`) 365 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 366 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 367 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 368 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 369 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 370 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 371 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 372 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 373 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 374 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 375 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 376 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 377 | - tosspayments-react-native (from `../node_modules/tosspayments-react-native`) 378 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 379 | 380 | SPEC REPOS: 381 | trunk: 382 | - boost-for-react-native 383 | - CocoaAsyncSocket 384 | - Flipper 385 | - Flipper-DoubleConversion 386 | - Flipper-Folly 387 | - Flipper-Glog 388 | - Flipper-PeerTalk 389 | - Flipper-RSocket 390 | - FlipperKit 391 | - libevent 392 | - OpenSSL-Universal 393 | - YogaKit 394 | 395 | EXTERNAL SOURCES: 396 | DoubleConversion: 397 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 398 | FBLazyVector: 399 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 400 | FBReactNativeSpec: 401 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 402 | glog: 403 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 404 | RCT-Folly: 405 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 406 | RCTRequired: 407 | :path: "../node_modules/react-native/Libraries/RCTRequired" 408 | RCTTypeSafety: 409 | :path: "../node_modules/react-native/Libraries/TypeSafety" 410 | React: 411 | :path: "../node_modules/react-native/" 412 | React-callinvoker: 413 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 414 | React-Core: 415 | :path: "../node_modules/react-native/" 416 | React-CoreModules: 417 | :path: "../node_modules/react-native/React/CoreModules" 418 | React-cxxreact: 419 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 420 | React-jsi: 421 | :path: "../node_modules/react-native/ReactCommon/jsi" 422 | React-jsiexecutor: 423 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 424 | React-jsinspector: 425 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 426 | react-native-webview: 427 | :path: "../node_modules/react-native-webview" 428 | React-perflogger: 429 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 430 | React-RCTActionSheet: 431 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 432 | React-RCTAnimation: 433 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 434 | React-RCTBlob: 435 | :path: "../node_modules/react-native/Libraries/Blob" 436 | React-RCTImage: 437 | :path: "../node_modules/react-native/Libraries/Image" 438 | React-RCTLinking: 439 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 440 | React-RCTNetwork: 441 | :path: "../node_modules/react-native/Libraries/Network" 442 | React-RCTSettings: 443 | :path: "../node_modules/react-native/Libraries/Settings" 444 | React-RCTText: 445 | :path: "../node_modules/react-native/Libraries/Text" 446 | React-RCTVibration: 447 | :path: "../node_modules/react-native/Libraries/Vibration" 448 | React-runtimeexecutor: 449 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 450 | ReactCommon: 451 | :path: "../node_modules/react-native/ReactCommon" 452 | tosspayments-react-native: 453 | :path: "../node_modules/tosspayments-react-native" 454 | Yoga: 455 | :path: "../node_modules/react-native/ReactCommon/yoga" 456 | 457 | SPEC CHECKSUMS: 458 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 459 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 460 | DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de 461 | FBLazyVector: 49cbe4b43e445b06bf29199b6ad2057649e4c8f5 462 | FBReactNativeSpec: 372894fe90f7947066b7f861501ce23c1c6220ba 463 | Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021 464 | Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41 465 | Flipper-Folly: f7a3caafbd74bda4827954fd7a6e000e36355489 466 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 467 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 468 | Flipper-RSocket: 602921fee03edacf18f5d6f3d3594ba477f456e5 469 | FlipperKit: 8a20b5c5fcf9436cac58551dc049867247f64b00 470 | glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62 471 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 472 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b 473 | RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c 474 | RCTRequired: 2f8cb5b7533219bf4218a045f92768129cf7050a 475 | RCTTypeSafety: 512728b73549e72ad7330b92f3d42936f2a4de5b 476 | React: 98eac01574128a790f0bbbafe2d1a8607291ac24 477 | React-callinvoker: def3f7fae16192df68d9b69fd4bbb59092ee36bc 478 | React-Core: 70a52aa5dbe9b83befae82038451a7df9fd54c5a 479 | React-CoreModules: 052edef46117862e2570eb3a0f06d81c61d2c4b8 480 | React-cxxreact: c1dc71b30653cfb4770efdafcbdc0ad6d388baab 481 | React-jsi: 74341196d9547cbcbcfa4b3bbbf03af56431d5a1 482 | React-jsiexecutor: 06a9c77b56902ae7ffcdd7a4905f664adc5d237b 483 | React-jsinspector: 0ae35a37b20d5e031eb020a69cc5afdbd6406301 484 | react-native-webview: 71567b6bf3d4e55914e580d720cc8f7df64af817 485 | React-perflogger: 9c547d8f06b9bf00cb447f2b75e8d7f19b7e02af 486 | React-RCTActionSheet: 3080b6e12e0e1a5b313c8c0050699b5c794a1b11 487 | React-RCTAnimation: 3f96f21a497ae7dabf4d2f150ee43f906aaf516f 488 | React-RCTBlob: 283b8e5025e7f954176bc48164f846909002f3ed 489 | React-RCTImage: 5088a484faac78f2d877e1b79125d3bb1ea94a16 490 | React-RCTLinking: 5e8fbb3e9a8bc2e4e3eb15b1eb8bda5fcac27b8c 491 | React-RCTNetwork: 38ec277217b1e841d5e6a1fa78da65b9212ccb28 492 | React-RCTSettings: 242d6e692108c3de4f3bb74b7586a8799e9ab070 493 | React-RCTText: 8746736ac8eb5a4a74719aa695b7a236a93a83d2 494 | React-RCTVibration: 0fd6b21751a33cb72fce1a4a33ab9678416d307a 495 | React-runtimeexecutor: cad74a1eaa53ee6e7a3620231939d8fe2c6afcf0 496 | ReactCommon: cfe2b7fd20e0dbd2d1185cd7d8f99633fbc5ff05 497 | tosspayments-react-native: d6d3796b84f21bdc0f5ac29569c28dd626264f96 498 | Yoga: 8c8436d4171c87504c648ae23b1d81242bdf3bbf 499 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 500 | 501 | PODFILE CHECKSUM: 852f3b1b92127e86015698dedf35ea385c9fa44b 502 | 503 | COCOAPODS: 1.10.1 504 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* TosspaymentsExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* TosspaymentsExampleTests.m */; }; 11 | 101226A3068E23A6E3A914C0 /* libPods-TosspaymentsExample-TosspaymentsExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 074BEAA786C520D5857405B1 /* libPods-TosspaymentsExample-TosspaymentsExampleTests.a */; }; 12 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 13 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 14 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 15 | 6B093F2A06D0BA8917D8F1DF /* libPods-TosspaymentsExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B53CF21A099150C20F3E3A36 /* libPods-TosspaymentsExample.a */; }; 16 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 25 | remoteInfo = TosspaymentsExample; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 00E356EE1AD99517003FC87E /* TosspaymentsExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TosspaymentsExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 00E356F21AD99517003FC87E /* TosspaymentsExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TosspaymentsExampleTests.m; sourceTree = ""; }; 33 | 074BEAA786C520D5857405B1 /* libPods-TosspaymentsExample-TosspaymentsExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-TosspaymentsExample-TosspaymentsExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 0B471812F30E51F0C2E915E5 /* Pods-TosspaymentsExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TosspaymentsExample.debug.xcconfig"; path = "Target Support Files/Pods-TosspaymentsExample/Pods-TosspaymentsExample.debug.xcconfig"; sourceTree = ""; }; 35 | 13B07F961A680F5B00A75B9A /* TosspaymentsExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TosspaymentsExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = TosspaymentsExample/AppDelegate.h; sourceTree = ""; }; 37 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = TosspaymentsExample/AppDelegate.m; sourceTree = ""; }; 38 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = TosspaymentsExample/Images.xcassets; sourceTree = ""; }; 39 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = TosspaymentsExample/Info.plist; sourceTree = ""; }; 40 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = TosspaymentsExample/main.m; sourceTree = ""; }; 41 | 7CAE1FD01728B81CBA54D6D9 /* Pods-TosspaymentsExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TosspaymentsExample.release.xcconfig"; path = "Target Support Files/Pods-TosspaymentsExample/Pods-TosspaymentsExample.release.xcconfig"; sourceTree = ""; }; 42 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = TosspaymentsExample/LaunchScreen.storyboard; sourceTree = ""; }; 43 | 83A68A0DA6EC00506F8CA7F1 /* Pods-TosspaymentsExample-TosspaymentsExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TosspaymentsExample-TosspaymentsExampleTests.release.xcconfig"; path = "Target Support Files/Pods-TosspaymentsExample-TosspaymentsExampleTests/Pods-TosspaymentsExample-TosspaymentsExampleTests.release.xcconfig"; sourceTree = ""; }; 44 | B53CF21A099150C20F3E3A36 /* libPods-TosspaymentsExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-TosspaymentsExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | DB2F3DEA49C0E0E9266BF6E5 /* Pods-TosspaymentsExample-TosspaymentsExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TosspaymentsExample-TosspaymentsExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-TosspaymentsExample-TosspaymentsExampleTests/Pods-TosspaymentsExample-TosspaymentsExampleTests.debug.xcconfig"; sourceTree = ""; }; 46 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | 101226A3068E23A6E3A914C0 /* libPods-TosspaymentsExample-TosspaymentsExampleTests.a in Frameworks */, 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 6B093F2A06D0BA8917D8F1DF /* libPods-TosspaymentsExample.a in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | 00E356EF1AD99517003FC87E /* TosspaymentsExampleTests */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 00E356F21AD99517003FC87E /* TosspaymentsExampleTests.m */, 73 | 00E356F01AD99517003FC87E /* Supporting Files */, 74 | ); 75 | path = TosspaymentsExampleTests; 76 | sourceTree = ""; 77 | }; 78 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 00E356F11AD99517003FC87E /* Info.plist */, 82 | ); 83 | name = "Supporting Files"; 84 | sourceTree = ""; 85 | }; 86 | 0D1D199D102CA52C2ED18023 /* Pods */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 0B471812F30E51F0C2E915E5 /* Pods-TosspaymentsExample.debug.xcconfig */, 90 | 7CAE1FD01728B81CBA54D6D9 /* Pods-TosspaymentsExample.release.xcconfig */, 91 | DB2F3DEA49C0E0E9266BF6E5 /* Pods-TosspaymentsExample-TosspaymentsExampleTests.debug.xcconfig */, 92 | 83A68A0DA6EC00506F8CA7F1 /* Pods-TosspaymentsExample-TosspaymentsExampleTests.release.xcconfig */, 93 | ); 94 | path = Pods; 95 | sourceTree = ""; 96 | }; 97 | 13B07FAE1A68108700A75B9A /* TosspaymentsExample */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 101 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 102 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 103 | 13B07FB61A68108700A75B9A /* Info.plist */, 104 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 105 | 13B07FB71A68108700A75B9A /* main.m */, 106 | ); 107 | name = TosspaymentsExample; 108 | sourceTree = ""; 109 | }; 110 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 114 | B53CF21A099150C20F3E3A36 /* libPods-TosspaymentsExample.a */, 115 | 074BEAA786C520D5857405B1 /* libPods-TosspaymentsExample-TosspaymentsExampleTests.a */, 116 | ); 117 | name = Frameworks; 118 | sourceTree = ""; 119 | }; 120 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | ); 124 | name = Libraries; 125 | sourceTree = ""; 126 | }; 127 | 83CBB9F61A601CBA00E9B192 = { 128 | isa = PBXGroup; 129 | children = ( 130 | 13B07FAE1A68108700A75B9A /* TosspaymentsExample */, 131 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 132 | 00E356EF1AD99517003FC87E /* TosspaymentsExampleTests */, 133 | 83CBBA001A601CBA00E9B192 /* Products */, 134 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 135 | 0D1D199D102CA52C2ED18023 /* Pods */, 136 | ); 137 | indentWidth = 2; 138 | sourceTree = ""; 139 | tabWidth = 2; 140 | usesTabs = 0; 141 | }; 142 | 83CBBA001A601CBA00E9B192 /* Products */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 13B07F961A680F5B00A75B9A /* TosspaymentsExample.app */, 146 | 00E356EE1AD99517003FC87E /* TosspaymentsExampleTests.xctest */, 147 | ); 148 | name = Products; 149 | sourceTree = ""; 150 | }; 151 | /* End PBXGroup section */ 152 | 153 | /* Begin PBXNativeTarget section */ 154 | 00E356ED1AD99517003FC87E /* TosspaymentsExampleTests */ = { 155 | isa = PBXNativeTarget; 156 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "TosspaymentsExampleTests" */; 157 | buildPhases = ( 158 | 82B3782DA584BCF40EDEF911 /* [CP] Check Pods Manifest.lock */, 159 | 00E356EA1AD99517003FC87E /* Sources */, 160 | 00E356EB1AD99517003FC87E /* Frameworks */, 161 | 00E356EC1AD99517003FC87E /* Resources */, 162 | EDBA79EF883BB1A187914981 /* [CP] Embed Pods Frameworks */, 163 | 71D52D665F642D7E379780C6 /* [CP] Copy Pods Resources */, 164 | ); 165 | buildRules = ( 166 | ); 167 | dependencies = ( 168 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 169 | ); 170 | name = TosspaymentsExampleTests; 171 | productName = TosspaymentsExampleTests; 172 | productReference = 00E356EE1AD99517003FC87E /* TosspaymentsExampleTests.xctest */; 173 | productType = "com.apple.product-type.bundle.unit-test"; 174 | }; 175 | 13B07F861A680F5B00A75B9A /* TosspaymentsExample */ = { 176 | isa = PBXNativeTarget; 177 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "TosspaymentsExample" */; 178 | buildPhases = ( 179 | C31338C0884823ECCF63818D /* [CP] Check Pods Manifest.lock */, 180 | FD10A7F022414F080027D42C /* Start Packager */, 181 | 13B07F871A680F5B00A75B9A /* Sources */, 182 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 183 | 13B07F8E1A680F5B00A75B9A /* Resources */, 184 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 185 | D148967B7B2980FC0BC812D5 /* [CP] Embed Pods Frameworks */, 186 | 3CA2C7597DE0A31D2B008502 /* [CP] Copy Pods Resources */, 187 | ); 188 | buildRules = ( 189 | ); 190 | dependencies = ( 191 | ); 192 | name = TosspaymentsExample; 193 | productName = TosspaymentsExample; 194 | productReference = 13B07F961A680F5B00A75B9A /* TosspaymentsExample.app */; 195 | productType = "com.apple.product-type.application"; 196 | }; 197 | /* End PBXNativeTarget section */ 198 | 199 | /* Begin PBXProject section */ 200 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 201 | isa = PBXProject; 202 | attributes = { 203 | LastUpgradeCheck = 1210; 204 | TargetAttributes = { 205 | 00E356ED1AD99517003FC87E = { 206 | CreatedOnToolsVersion = 6.2; 207 | TestTargetID = 13B07F861A680F5B00A75B9A; 208 | }; 209 | 13B07F861A680F5B00A75B9A = { 210 | LastSwiftMigration = 1120; 211 | }; 212 | }; 213 | }; 214 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "TosspaymentsExample" */; 215 | compatibilityVersion = "Xcode 12.0"; 216 | developmentRegion = en; 217 | hasScannedForEncodings = 0; 218 | knownRegions = ( 219 | en, 220 | Base, 221 | ); 222 | mainGroup = 83CBB9F61A601CBA00E9B192; 223 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 224 | projectDirPath = ""; 225 | projectRoot = ""; 226 | targets = ( 227 | 13B07F861A680F5B00A75B9A /* TosspaymentsExample */, 228 | 00E356ED1AD99517003FC87E /* TosspaymentsExampleTests */, 229 | ); 230 | }; 231 | /* End PBXProject section */ 232 | 233 | /* Begin PBXResourcesBuildPhase section */ 234 | 00E356EC1AD99517003FC87E /* Resources */ = { 235 | isa = PBXResourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | }; 241 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 242 | isa = PBXResourcesBuildPhase; 243 | buildActionMask = 2147483647; 244 | files = ( 245 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 246 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | /* End PBXResourcesBuildPhase section */ 251 | 252 | /* Begin PBXShellScriptBuildPhase section */ 253 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 254 | isa = PBXShellScriptBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | ); 258 | inputPaths = ( 259 | ); 260 | name = "Bundle React Native code and images"; 261 | outputPaths = ( 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | shellPath = /bin/sh; 265 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; 266 | }; 267 | 3CA2C7597DE0A31D2B008502 /* [CP] Copy Pods Resources */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputFileListPaths = ( 273 | "${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample/Pods-TosspaymentsExample-resources-${CONFIGURATION}-input-files.xcfilelist", 274 | ); 275 | name = "[CP] Copy Pods Resources"; 276 | outputFileListPaths = ( 277 | "${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample/Pods-TosspaymentsExample-resources-${CONFIGURATION}-output-files.xcfilelist", 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | shellPath = /bin/sh; 281 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample/Pods-TosspaymentsExample-resources.sh\"\n"; 282 | showEnvVarsInLog = 0; 283 | }; 284 | 71D52D665F642D7E379780C6 /* [CP] Copy Pods Resources */ = { 285 | isa = PBXShellScriptBuildPhase; 286 | buildActionMask = 2147483647; 287 | files = ( 288 | ); 289 | inputFileListPaths = ( 290 | "${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample-TosspaymentsExampleTests/Pods-TosspaymentsExample-TosspaymentsExampleTests-resources-${CONFIGURATION}-input-files.xcfilelist", 291 | ); 292 | name = "[CP] Copy Pods Resources"; 293 | outputFileListPaths = ( 294 | "${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample-TosspaymentsExampleTests/Pods-TosspaymentsExample-TosspaymentsExampleTests-resources-${CONFIGURATION}-output-files.xcfilelist", 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | shellPath = /bin/sh; 298 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample-TosspaymentsExampleTests/Pods-TosspaymentsExample-TosspaymentsExampleTests-resources.sh\"\n"; 299 | showEnvVarsInLog = 0; 300 | }; 301 | 82B3782DA584BCF40EDEF911 /* [CP] Check Pods Manifest.lock */ = { 302 | isa = PBXShellScriptBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | ); 306 | inputFileListPaths = ( 307 | ); 308 | inputPaths = ( 309 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 310 | "${PODS_ROOT}/Manifest.lock", 311 | ); 312 | name = "[CP] Check Pods Manifest.lock"; 313 | outputFileListPaths = ( 314 | ); 315 | outputPaths = ( 316 | "$(DERIVED_FILE_DIR)/Pods-TosspaymentsExample-TosspaymentsExampleTests-checkManifestLockResult.txt", 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | shellPath = /bin/sh; 320 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 321 | showEnvVarsInLog = 0; 322 | }; 323 | C31338C0884823ECCF63818D /* [CP] Check Pods Manifest.lock */ = { 324 | isa = PBXShellScriptBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | ); 328 | inputFileListPaths = ( 329 | ); 330 | inputPaths = ( 331 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 332 | "${PODS_ROOT}/Manifest.lock", 333 | ); 334 | name = "[CP] Check Pods Manifest.lock"; 335 | outputFileListPaths = ( 336 | ); 337 | outputPaths = ( 338 | "$(DERIVED_FILE_DIR)/Pods-TosspaymentsExample-checkManifestLockResult.txt", 339 | ); 340 | runOnlyForDeploymentPostprocessing = 0; 341 | shellPath = /bin/sh; 342 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 343 | showEnvVarsInLog = 0; 344 | }; 345 | D148967B7B2980FC0BC812D5 /* [CP] Embed Pods Frameworks */ = { 346 | isa = PBXShellScriptBuildPhase; 347 | buildActionMask = 2147483647; 348 | files = ( 349 | ); 350 | inputFileListPaths = ( 351 | "${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample/Pods-TosspaymentsExample-frameworks-${CONFIGURATION}-input-files.xcfilelist", 352 | ); 353 | name = "[CP] Embed Pods Frameworks"; 354 | outputFileListPaths = ( 355 | "${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample/Pods-TosspaymentsExample-frameworks-${CONFIGURATION}-output-files.xcfilelist", 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | shellPath = /bin/sh; 359 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample/Pods-TosspaymentsExample-frameworks.sh\"\n"; 360 | showEnvVarsInLog = 0; 361 | }; 362 | EDBA79EF883BB1A187914981 /* [CP] Embed Pods Frameworks */ = { 363 | isa = PBXShellScriptBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | ); 367 | inputFileListPaths = ( 368 | "${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample-TosspaymentsExampleTests/Pods-TosspaymentsExample-TosspaymentsExampleTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", 369 | ); 370 | name = "[CP] Embed Pods Frameworks"; 371 | outputFileListPaths = ( 372 | "${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample-TosspaymentsExampleTests/Pods-TosspaymentsExample-TosspaymentsExampleTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", 373 | ); 374 | runOnlyForDeploymentPostprocessing = 0; 375 | shellPath = /bin/sh; 376 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TosspaymentsExample-TosspaymentsExampleTests/Pods-TosspaymentsExample-TosspaymentsExampleTests-frameworks.sh\"\n"; 377 | showEnvVarsInLog = 0; 378 | }; 379 | FD10A7F022414F080027D42C /* Start Packager */ = { 380 | isa = PBXShellScriptBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | ); 384 | inputFileListPaths = ( 385 | ); 386 | inputPaths = ( 387 | ); 388 | name = "Start Packager"; 389 | outputFileListPaths = ( 390 | ); 391 | outputPaths = ( 392 | ); 393 | runOnlyForDeploymentPostprocessing = 0; 394 | shellPath = /bin/sh; 395 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 396 | showEnvVarsInLog = 0; 397 | }; 398 | /* End PBXShellScriptBuildPhase section */ 399 | 400 | /* Begin PBXSourcesBuildPhase section */ 401 | 00E356EA1AD99517003FC87E /* Sources */ = { 402 | isa = PBXSourcesBuildPhase; 403 | buildActionMask = 2147483647; 404 | files = ( 405 | 00E356F31AD99517003FC87E /* TosspaymentsExampleTests.m in Sources */, 406 | ); 407 | runOnlyForDeploymentPostprocessing = 0; 408 | }; 409 | 13B07F871A680F5B00A75B9A /* Sources */ = { 410 | isa = PBXSourcesBuildPhase; 411 | buildActionMask = 2147483647; 412 | files = ( 413 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 414 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 415 | ); 416 | runOnlyForDeploymentPostprocessing = 0; 417 | }; 418 | /* End PBXSourcesBuildPhase section */ 419 | 420 | /* Begin PBXTargetDependency section */ 421 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 422 | isa = PBXTargetDependency; 423 | target = 13B07F861A680F5B00A75B9A /* TosspaymentsExample */; 424 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 425 | }; 426 | /* End PBXTargetDependency section */ 427 | 428 | /* Begin XCBuildConfiguration section */ 429 | 00E356F61AD99517003FC87E /* Debug */ = { 430 | isa = XCBuildConfiguration; 431 | baseConfigurationReference = DB2F3DEA49C0E0E9266BF6E5 /* Pods-TosspaymentsExample-TosspaymentsExampleTests.debug.xcconfig */; 432 | buildSettings = { 433 | BUNDLE_LOADER = "$(TEST_HOST)"; 434 | GCC_PREPROCESSOR_DEFINITIONS = ( 435 | "DEBUG=1", 436 | "$(inherited)", 437 | ); 438 | INFOPLIST_FILE = TosspaymentsExampleTests/Info.plist; 439 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 440 | LD_RUNPATH_SEARCH_PATHS = ( 441 | "$(inherited)", 442 | "@executable_path/Frameworks", 443 | "@loader_path/Frameworks", 444 | ); 445 | OTHER_LDFLAGS = ( 446 | "-ObjC", 447 | "-lc++", 448 | "$(inherited)", 449 | ); 450 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 451 | PRODUCT_NAME = "$(TARGET_NAME)"; 452 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TosspaymentsExample.app/TosspaymentsExample"; 453 | }; 454 | name = Debug; 455 | }; 456 | 00E356F71AD99517003FC87E /* Release */ = { 457 | isa = XCBuildConfiguration; 458 | baseConfigurationReference = 83A68A0DA6EC00506F8CA7F1 /* Pods-TosspaymentsExample-TosspaymentsExampleTests.release.xcconfig */; 459 | buildSettings = { 460 | BUNDLE_LOADER = "$(TEST_HOST)"; 461 | COPY_PHASE_STRIP = NO; 462 | INFOPLIST_FILE = TosspaymentsExampleTests/Info.plist; 463 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 464 | LD_RUNPATH_SEARCH_PATHS = ( 465 | "$(inherited)", 466 | "@executable_path/Frameworks", 467 | "@loader_path/Frameworks", 468 | ); 469 | OTHER_LDFLAGS = ( 470 | "-ObjC", 471 | "-lc++", 472 | "$(inherited)", 473 | ); 474 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 475 | PRODUCT_NAME = "$(TARGET_NAME)"; 476 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TosspaymentsExample.app/TosspaymentsExample"; 477 | }; 478 | name = Release; 479 | }; 480 | 13B07F941A680F5B00A75B9A /* Debug */ = { 481 | isa = XCBuildConfiguration; 482 | baseConfigurationReference = 0B471812F30E51F0C2E915E5 /* Pods-TosspaymentsExample.debug.xcconfig */; 483 | buildSettings = { 484 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 485 | CLANG_ENABLE_MODULES = YES; 486 | CURRENT_PROJECT_VERSION = 1; 487 | DEVELOPMENT_TEAM = 2WMQV4923D; 488 | ENABLE_BITCODE = NO; 489 | INFOPLIST_FILE = TosspaymentsExample/Info.plist; 490 | LD_RUNPATH_SEARCH_PATHS = ( 491 | "$(inherited)", 492 | "@executable_path/Frameworks", 493 | ); 494 | OTHER_LDFLAGS = ( 495 | "$(inherited)", 496 | "-ObjC", 497 | "-lc++", 498 | ); 499 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 500 | PRODUCT_NAME = TosspaymentsExample; 501 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 502 | SWIFT_VERSION = 5.0; 503 | VERSIONING_SYSTEM = "apple-generic"; 504 | }; 505 | name = Debug; 506 | }; 507 | 13B07F951A680F5B00A75B9A /* Release */ = { 508 | isa = XCBuildConfiguration; 509 | baseConfigurationReference = 7CAE1FD01728B81CBA54D6D9 /* Pods-TosspaymentsExample.release.xcconfig */; 510 | buildSettings = { 511 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 512 | CLANG_ENABLE_MODULES = YES; 513 | CURRENT_PROJECT_VERSION = 1; 514 | DEVELOPMENT_TEAM = 2WMQV4923D; 515 | INFOPLIST_FILE = TosspaymentsExample/Info.plist; 516 | LD_RUNPATH_SEARCH_PATHS = ( 517 | "$(inherited)", 518 | "@executable_path/Frameworks", 519 | ); 520 | OTHER_LDFLAGS = ( 521 | "$(inherited)", 522 | "-ObjC", 523 | "-lc++", 524 | ); 525 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 526 | PRODUCT_NAME = TosspaymentsExample; 527 | SWIFT_VERSION = 5.0; 528 | VERSIONING_SYSTEM = "apple-generic"; 529 | }; 530 | name = Release; 531 | }; 532 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 533 | isa = XCBuildConfiguration; 534 | buildSettings = { 535 | ALWAYS_SEARCH_USER_PATHS = NO; 536 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 537 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 538 | CLANG_CXX_LIBRARY = "libc++"; 539 | CLANG_ENABLE_MODULES = YES; 540 | CLANG_ENABLE_OBJC_ARC = YES; 541 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 542 | CLANG_WARN_BOOL_CONVERSION = YES; 543 | CLANG_WARN_COMMA = YES; 544 | CLANG_WARN_CONSTANT_CONVERSION = YES; 545 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 546 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 547 | CLANG_WARN_EMPTY_BODY = YES; 548 | CLANG_WARN_ENUM_CONVERSION = YES; 549 | CLANG_WARN_INFINITE_RECURSION = YES; 550 | CLANG_WARN_INT_CONVERSION = YES; 551 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 552 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 553 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 554 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 555 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 556 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 557 | CLANG_WARN_STRICT_PROTOTYPES = YES; 558 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 559 | CLANG_WARN_UNREACHABLE_CODE = YES; 560 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 561 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 562 | COPY_PHASE_STRIP = NO; 563 | ENABLE_STRICT_OBJC_MSGSEND = YES; 564 | ENABLE_TESTABILITY = YES; 565 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 566 | GCC_C_LANGUAGE_STANDARD = gnu99; 567 | GCC_DYNAMIC_NO_PIC = NO; 568 | GCC_NO_COMMON_BLOCKS = YES; 569 | GCC_OPTIMIZATION_LEVEL = 0; 570 | GCC_PREPROCESSOR_DEFINITIONS = ( 571 | "DEBUG=1", 572 | "$(inherited)", 573 | ); 574 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 575 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 576 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 577 | GCC_WARN_UNDECLARED_SELECTOR = YES; 578 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 579 | GCC_WARN_UNUSED_FUNCTION = YES; 580 | GCC_WARN_UNUSED_VARIABLE = YES; 581 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 582 | LD_RUNPATH_SEARCH_PATHS = ( 583 | /usr/lib/swift, 584 | "$(inherited)", 585 | ); 586 | LIBRARY_SEARCH_PATHS = ( 587 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 588 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 589 | "\"$(inherited)\"", 590 | ); 591 | MTL_ENABLE_DEBUG_INFO = YES; 592 | ONLY_ACTIVE_ARCH = YES; 593 | SDKROOT = iphoneos; 594 | }; 595 | name = Debug; 596 | }; 597 | 83CBBA211A601CBA00E9B192 /* Release */ = { 598 | isa = XCBuildConfiguration; 599 | buildSettings = { 600 | ALWAYS_SEARCH_USER_PATHS = NO; 601 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 602 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 603 | CLANG_CXX_LIBRARY = "libc++"; 604 | CLANG_ENABLE_MODULES = YES; 605 | CLANG_ENABLE_OBJC_ARC = YES; 606 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 607 | CLANG_WARN_BOOL_CONVERSION = YES; 608 | CLANG_WARN_COMMA = YES; 609 | CLANG_WARN_CONSTANT_CONVERSION = YES; 610 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 611 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 612 | CLANG_WARN_EMPTY_BODY = YES; 613 | CLANG_WARN_ENUM_CONVERSION = YES; 614 | CLANG_WARN_INFINITE_RECURSION = YES; 615 | CLANG_WARN_INT_CONVERSION = YES; 616 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 617 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 618 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 619 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 620 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 621 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 622 | CLANG_WARN_STRICT_PROTOTYPES = YES; 623 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 624 | CLANG_WARN_UNREACHABLE_CODE = YES; 625 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 626 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 627 | COPY_PHASE_STRIP = YES; 628 | ENABLE_NS_ASSERTIONS = NO; 629 | ENABLE_STRICT_OBJC_MSGSEND = YES; 630 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 631 | GCC_C_LANGUAGE_STANDARD = gnu99; 632 | GCC_NO_COMMON_BLOCKS = YES; 633 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 634 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 635 | GCC_WARN_UNDECLARED_SELECTOR = YES; 636 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 637 | GCC_WARN_UNUSED_FUNCTION = YES; 638 | GCC_WARN_UNUSED_VARIABLE = YES; 639 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 640 | LD_RUNPATH_SEARCH_PATHS = ( 641 | /usr/lib/swift, 642 | "$(inherited)", 643 | ); 644 | LIBRARY_SEARCH_PATHS = ( 645 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 646 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 647 | "\"$(inherited)\"", 648 | ); 649 | MTL_ENABLE_DEBUG_INFO = NO; 650 | SDKROOT = iphoneos; 651 | VALIDATE_PRODUCT = YES; 652 | }; 653 | name = Release; 654 | }; 655 | /* End XCBuildConfiguration section */ 656 | 657 | /* Begin XCConfigurationList section */ 658 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "TosspaymentsExampleTests" */ = { 659 | isa = XCConfigurationList; 660 | buildConfigurations = ( 661 | 00E356F61AD99517003FC87E /* Debug */, 662 | 00E356F71AD99517003FC87E /* Release */, 663 | ); 664 | defaultConfigurationIsVisible = 0; 665 | defaultConfigurationName = Release; 666 | }; 667 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "TosspaymentsExample" */ = { 668 | isa = XCConfigurationList; 669 | buildConfigurations = ( 670 | 13B07F941A680F5B00A75B9A /* Debug */, 671 | 13B07F951A680F5B00A75B9A /* Release */, 672 | ); 673 | defaultConfigurationIsVisible = 0; 674 | defaultConfigurationName = Release; 675 | }; 676 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "TosspaymentsExample" */ = { 677 | isa = XCConfigurationList; 678 | buildConfigurations = ( 679 | 83CBBA201A601CBA00E9B192 /* Debug */, 680 | 83CBBA211A601CBA00E9B192 /* Release */, 681 | ); 682 | defaultConfigurationIsVisible = 0; 683 | defaultConfigurationName = Release; 684 | }; 685 | /* End XCConfigurationList section */ 686 | }; 687 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 688 | } 689 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExample.xcodeproj/xcshareddata/xcschemes/TosspaymentsExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | 7 | #ifdef FB_SONARKIT_ENABLED 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | 15 | static void InitializeFlipper(UIApplication *application) { 16 | FlipperClient *client = [FlipperClient sharedClient]; 17 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 18 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 19 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 20 | [client addPlugin:[FlipperKitReactPlugin new]]; 21 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 22 | [client start]; 23 | } 24 | #endif 25 | 26 | @implementation AppDelegate 27 | 28 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 29 | { 30 | #ifdef FB_SONARKIT_ENABLED 31 | InitializeFlipper(application); 32 | #endif 33 | 34 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 35 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 36 | moduleName:@"TosspaymentsExample" 37 | initialProperties:nil]; 38 | 39 | if (@available(iOS 13.0, *)) { 40 | rootView.backgroundColor = [UIColor systemBackgroundColor]; 41 | } else { 42 | rootView.backgroundColor = [UIColor whiteColor]; 43 | } 44 | 45 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 46 | UIViewController *rootViewController = [UIViewController new]; 47 | rootViewController.view = rootView; 48 | self.window.rootViewController = rootViewController; 49 | [self.window makeKeyAndVisible]; 50 | return YES; 51 | } 52 | 53 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 54 | { 55 | #if DEBUG 56 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 57 | #else 58 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 59 | #endif 60 | } 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /example/ios/TosspaymentsExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | TosspaymentsExample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UIViewControllerBasedStatusBarAppearance 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExample/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExample/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /example/ios/TosspaymentsExampleTests/TosspaymentsExampleTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 9 | 10 | @interface TosspaymentsExampleTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation TosspaymentsExampleTests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 38 | if (level >= RCTLogLevelError) { 39 | redboxError = message; 40 | } 41 | }); 42 | #endif 43 | 44 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 45 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 46 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | 48 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 49 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 50 | return YES; 51 | } 52 | return NO; 53 | }]; 54 | } 55 | 56 | #ifdef DEBUG 57 | RCTSetLogFunction(RCTDefaultLogFunction); 58 | #endif 59 | 60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /example/metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: true, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tosspaymentsexample", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx" 11 | }, 12 | "dependencies": { 13 | "react": "17.0.1", 14 | "react-native": "0.64.0", 15 | "react-native-send-intent": "^1.2.3", 16 | "react-native-webview": "11.3.2", 17 | "tosspayments-react-native": "^1.0.5" 18 | }, 19 | "devDependencies": { 20 | "@babel/core": "^7.12.9", 21 | "@babel/runtime": "^7.12.5", 22 | "@react-native-community/eslint-config": "^2.0.0", 23 | "@types/jest": "^26.0.20", 24 | "@types/react-native": "^0.64.0", 25 | "@types/react-test-renderer": "^16.9.2", 26 | "babel-jest": "^26.6.3", 27 | "eslint": "^7.14.0", 28 | "jest": "^26.6.3", 29 | "metro-react-native-babel-preset": "^0.64.0", 30 | "react-test-renderer": "17.0.1", 31 | "typescript": "^3.8.3" 32 | }, 33 | "resolutions": { 34 | "@types/react": "^17" 35 | }, 36 | "jest": { 37 | "preset": "react-native", 38 | "moduleFileExtensions": [ 39 | "ts", 40 | "tsx", 41 | "js", 42 | "jsx", 43 | "json", 44 | "node" 45 | ] 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "compilerOptions": { 4 | /* Basic Options */ 5 | "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ 6 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ 7 | "lib": ["es2017"], /* Specify library files to be included in the compilation. */ 8 | "allowJs": true, /* Allow javascript files to be compiled. */ 9 | // "checkJs": true, /* Report errors in .js files. */ 10 | "jsx": "react-native", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ 11 | // "declaration": true, /* Generates corresponding '.d.ts' file. */ 12 | // "sourceMap": true, /* Generates corresponding '.map' file. */ 13 | // "outFile": "./", /* Concatenate and emit output to single file. */ 14 | // "outDir": "./", /* Redirect output structure to the directory. */ 15 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 16 | // "removeComments": true, /* Do not emit comments to output. */ 17 | "noEmit": true, /* Do not emit outputs. */ 18 | // "incremental": true, /* Enable incremental compilation */ 19 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */ 20 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ 21 | "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ 22 | 23 | /* Strict Type-Checking Options */ 24 | "strict": true, /* Enable all strict type-checking options. */ 25 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 26 | // "strictNullChecks": true, /* Enable strict null checks. */ 27 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ 28 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ 29 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ 30 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ 31 | 32 | /* Additional Checks */ 33 | // "noUnusedLocals": true, /* Report errors on unused locals. */ 34 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 35 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 36 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 37 | 38 | /* Module Resolution Options */ 39 | "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ 40 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ 41 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ 42 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ 43 | // "typeRoots": [], /* List of folders to include type definitions from. */ 44 | // "types": [], /* Type declaration files to be included in compilation. */ 45 | "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ 46 | "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 47 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ 48 | "skipLibCheck": false /* Skip type checking of declaration files. */ 49 | 50 | /* Source Map Options */ 51 | // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 52 | // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ 53 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 54 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 55 | 56 | /* Experimental Options */ 57 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 58 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 59 | }, 60 | "exclude": [ 61 | "node_modules", "babel.config.js", "metro.config.js", "jest.config.js" 62 | ] 63 | } 64 | -------------------------------------------------------------------------------- /ios/RnTosspayments.h: -------------------------------------------------------------------------------- 1 | // RnTosspayments.h 2 | 3 | #import 4 | 5 | @interface RnTosspayments : NSObject 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /ios/RnTosspayments.m: -------------------------------------------------------------------------------- 1 | // RnTosspayments.m 2 | 3 | #import "RnTosspayments.h" 4 | 5 | 6 | @implementation RnTosspayments 7 | 8 | RCT_EXPORT_MODULE() 9 | 10 | RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnull NSNumber *)numberArgument callback:(RCTResponseSenderBlock)callback) 11 | { 12 | // TODO: Implement some actually useful functionality 13 | callback(@[[NSString stringWithFormat: @"numberArgument: %@ stringArgument: %@", numberArgument, stringArgument]]); 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/RnTosspayments.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXCopyFilesBuildPhase section */ 10 | 58B511D91A9E6C8500147676 /* CopyFiles */ = { 11 | isa = PBXCopyFilesBuildPhase; 12 | buildActionMask = 2147483647; 13 | dstPath = "include/$(PRODUCT_NAME)"; 14 | dstSubfolderSpec = 16; 15 | files = ( 16 | ); 17 | runOnlyForDeploymentPostprocessing = 0; 18 | }; 19 | /* End PBXCopyFilesBuildPhase section */ 20 | 21 | /* Begin PBXFileReference section */ 22 | 134814201AA4EA6300B7C361 /* libRnTosspayments.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRnTosspayments.a; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | /* End PBXFileReference section */ 24 | 25 | /* Begin PBXFrameworksBuildPhase section */ 26 | 58B511D81A9E6C8500147676 /* Frameworks */ = { 27 | isa = PBXFrameworksBuildPhase; 28 | buildActionMask = 2147483647; 29 | files = ( 30 | ); 31 | runOnlyForDeploymentPostprocessing = 0; 32 | }; 33 | /* End PBXFrameworksBuildPhase section */ 34 | 35 | /* Begin PBXGroup section */ 36 | 134814211AA4EA7D00B7C361 /* Products */ = { 37 | isa = PBXGroup; 38 | children = ( 39 | 134814201AA4EA6300B7C361 /* libRnTosspayments.a */, 40 | ); 41 | name = Products; 42 | sourceTree = ""; 43 | }; 44 | 58B511D21A9E6C8500147676 = { 45 | isa = PBXGroup; 46 | children = ( 47 | 134814211AA4EA7D00B7C361 /* Products */, 48 | ); 49 | sourceTree = ""; 50 | }; 51 | /* End PBXGroup section */ 52 | 53 | /* Begin PBXNativeTarget section */ 54 | 58B511DA1A9E6C8500147676 /* RnTosspayments */ = { 55 | isa = PBXNativeTarget; 56 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RnTosspayments" */; 57 | buildPhases = ( 58 | 58B511D71A9E6C8500147676 /* Sources */, 59 | 58B511D81A9E6C8500147676 /* Frameworks */, 60 | 58B511D91A9E6C8500147676 /* CopyFiles */, 61 | ); 62 | buildRules = ( 63 | ); 64 | dependencies = ( 65 | ); 66 | name = RnTosspayments; 67 | productName = RCTDataManager; 68 | productReference = 134814201AA4EA6300B7C361 /* libRnTosspayments.a */; 69 | productType = "com.apple.product-type.library.static"; 70 | }; 71 | /* End PBXNativeTarget section */ 72 | 73 | /* Begin PBXProject section */ 74 | 58B511D31A9E6C8500147676 /* Project object */ = { 75 | isa = PBXProject; 76 | attributes = { 77 | LastUpgradeCheck = 0920; 78 | ORGANIZATIONNAME = Facebook; 79 | TargetAttributes = { 80 | 58B511DA1A9E6C8500147676 = { 81 | CreatedOnToolsVersion = 6.1.1; 82 | }; 83 | }; 84 | }; 85 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RnTosspayments" */; 86 | compatibilityVersion = "Xcode 3.2"; 87 | developmentRegion = en; 88 | hasScannedForEncodings = 0; 89 | knownRegions = ( 90 | en, 91 | Base, 92 | ); 93 | mainGroup = 58B511D21A9E6C8500147676; 94 | productRefGroup = 58B511D21A9E6C8500147676; 95 | projectDirPath = ""; 96 | projectRoot = ""; 97 | targets = ( 98 | 58B511DA1A9E6C8500147676 /* RnTosspayments */, 99 | ); 100 | }; 101 | /* End PBXProject section */ 102 | 103 | /* Begin PBXSourcesBuildPhase section */ 104 | 58B511D71A9E6C8500147676 /* Sources */ = { 105 | isa = PBXSourcesBuildPhase; 106 | buildActionMask = 2147483647; 107 | files = ( 108 | ); 109 | runOnlyForDeploymentPostprocessing = 0; 110 | }; 111 | /* End PBXSourcesBuildPhase section */ 112 | 113 | /* Begin XCBuildConfiguration section */ 114 | 58B511ED1A9E6C8500147676 /* Debug */ = { 115 | isa = XCBuildConfiguration; 116 | buildSettings = { 117 | ALWAYS_SEARCH_USER_PATHS = NO; 118 | CLANG_ANALYZER_NONNULL = YES; 119 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 120 | CLANG_CXX_LIBRARY = "libc++"; 121 | CLANG_ENABLE_MODULES = YES; 122 | CLANG_ENABLE_OBJC_ARC = YES; 123 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 124 | CLANG_WARN_BOOL_CONVERSION = YES; 125 | CLANG_WARN_COMMA = YES; 126 | CLANG_WARN_CONSTANT_CONVERSION = YES; 127 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 128 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 129 | CLANG_WARN_EMPTY_BODY = YES; 130 | CLANG_WARN_ENUM_CONVERSION = YES; 131 | CLANG_WARN_INFINITE_RECURSION = YES; 132 | CLANG_WARN_INT_CONVERSION = YES; 133 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 134 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 135 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 136 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 137 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 138 | CLANG_WARN_STRICT_PROTOTYPES = YES; 139 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 140 | CLANG_WARN_UNREACHABLE_CODE = YES; 141 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 142 | COPY_PHASE_STRIP = NO; 143 | ENABLE_STRICT_OBJC_MSGSEND = YES; 144 | ENABLE_TESTABILITY = YES; 145 | GCC_C_LANGUAGE_STANDARD = gnu99; 146 | GCC_DYNAMIC_NO_PIC = NO; 147 | GCC_NO_COMMON_BLOCKS = YES; 148 | GCC_OPTIMIZATION_LEVEL = 0; 149 | GCC_PREPROCESSOR_DEFINITIONS = ( 150 | "DEBUG=1", 151 | "$(inherited)", 152 | ); 153 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 154 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 155 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 156 | GCC_WARN_UNDECLARED_SELECTOR = YES; 157 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 158 | GCC_WARN_UNUSED_FUNCTION = YES; 159 | GCC_WARN_UNUSED_VARIABLE = YES; 160 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 161 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 162 | LIBRARY_SEARCH_PATHS = ( 163 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 164 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 165 | "\"$(inherited)\"", 166 | ); 167 | MTL_ENABLE_DEBUG_INFO = YES; 168 | ONLY_ACTIVE_ARCH = YES; 169 | SDKROOT = iphoneos; 170 | }; 171 | name = Debug; 172 | }; 173 | 58B511EE1A9E6C8500147676 /* Release */ = { 174 | isa = XCBuildConfiguration; 175 | buildSettings = { 176 | ALWAYS_SEARCH_USER_PATHS = NO; 177 | CLANG_ANALYZER_NONNULL = YES; 178 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 179 | CLANG_CXX_LIBRARY = "libc++"; 180 | CLANG_ENABLE_MODULES = YES; 181 | CLANG_ENABLE_OBJC_ARC = YES; 182 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 183 | CLANG_WARN_BOOL_CONVERSION = YES; 184 | CLANG_WARN_COMMA = YES; 185 | CLANG_WARN_CONSTANT_CONVERSION = YES; 186 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 187 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 188 | CLANG_WARN_EMPTY_BODY = YES; 189 | CLANG_WARN_ENUM_CONVERSION = YES; 190 | CLANG_WARN_INFINITE_RECURSION = YES; 191 | CLANG_WARN_INT_CONVERSION = YES; 192 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 193 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 194 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 195 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 196 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 197 | CLANG_WARN_STRICT_PROTOTYPES = YES; 198 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 199 | CLANG_WARN_UNREACHABLE_CODE = YES; 200 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 201 | COPY_PHASE_STRIP = YES; 202 | ENABLE_NS_ASSERTIONS = NO; 203 | ENABLE_STRICT_OBJC_MSGSEND = YES; 204 | GCC_C_LANGUAGE_STANDARD = gnu99; 205 | GCC_NO_COMMON_BLOCKS = YES; 206 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 207 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 208 | GCC_WARN_UNDECLARED_SELECTOR = YES; 209 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 210 | GCC_WARN_UNUSED_FUNCTION = YES; 211 | GCC_WARN_UNUSED_VARIABLE = YES; 212 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 213 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 214 | LIBRARY_SEARCH_PATHS = ( 215 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 216 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 217 | "\"$(inherited)\"", 218 | ); 219 | MTL_ENABLE_DEBUG_INFO = NO; 220 | SDKROOT = iphoneos; 221 | VALIDATE_PRODUCT = YES; 222 | }; 223 | name = Release; 224 | }; 225 | 58B511F01A9E6C8500147676 /* Debug */ = { 226 | isa = XCBuildConfiguration; 227 | buildSettings = { 228 | HEADER_SEARCH_PATHS = ( 229 | "$(inherited)", 230 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 231 | "$(SRCROOT)/../../../React/**", 232 | "$(SRCROOT)/../../react-native/React/**", 233 | ); 234 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 235 | OTHER_LDFLAGS = "-ObjC"; 236 | PRODUCT_NAME = RnTosspayments; 237 | SKIP_INSTALL = YES; 238 | }; 239 | name = Debug; 240 | }; 241 | 58B511F11A9E6C8500147676 /* Release */ = { 242 | isa = XCBuildConfiguration; 243 | buildSettings = { 244 | HEADER_SEARCH_PATHS = ( 245 | "$(inherited)", 246 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 247 | "$(SRCROOT)/../../../React/**", 248 | "$(SRCROOT)/../../react-native/React/**", 249 | ); 250 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 251 | OTHER_LDFLAGS = "-ObjC"; 252 | PRODUCT_NAME = RnTosspayments; 253 | SKIP_INSTALL = YES; 254 | }; 255 | name = Release; 256 | }; 257 | /* End XCBuildConfiguration section */ 258 | 259 | /* Begin XCConfigurationList section */ 260 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RnTosspayments" */ = { 261 | isa = XCConfigurationList; 262 | buildConfigurations = ( 263 | 58B511ED1A9E6C8500147676 /* Debug */, 264 | 58B511EE1A9E6C8500147676 /* Release */, 265 | ); 266 | defaultConfigurationIsVisible = 0; 267 | defaultConfigurationName = Release; 268 | }; 269 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RnTosspayments" */ = { 270 | isa = XCConfigurationList; 271 | buildConfigurations = ( 272 | 58B511F01A9E6C8500147676 /* Debug */, 273 | 58B511F11A9E6C8500147676 /* Release */, 274 | ); 275 | defaultConfigurationIsVisible = 0; 276 | defaultConfigurationName = Release; 277 | }; 278 | /* End XCConfigurationList section */ 279 | }; 280 | rootObject = 58B511D31A9E6C8500147676 /* Project object */; 281 | } 282 | -------------------------------------------------------------------------------- /ios/RnTosspayments.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tosspayments-react-native", 3 | "version": "1.0.7", 4 | "description": "tosspayments module for react-native", 5 | "main": "lib/index.js", 6 | "types": "lib/index.d.ts", 7 | "typings": "lib/index.d.ts", 8 | "files": [ 9 | "README.md", 10 | "android", 11 | "lib", 12 | "ios", 13 | "tosspayments-react-native.podspec" 14 | ], 15 | "scripts": { 16 | "test": "echo \"Error: no test specified\" && exit 1" 17 | }, 18 | "repository": { 19 | "type": "git", 20 | "url": "git+https://github.com/smsmsmsmin/tosspayments-react-native.git", 21 | "baseUrl": "https://github.com/smsmsmsmin/tosspayments-react-native" 22 | }, 23 | "keywords": [ 24 | "react-native", 25 | "tosspayments" 26 | ], 27 | "author": { 28 | "name": "Lee Seungmin", 29 | "email": "lee@seungmin.io" 30 | }, 31 | "license": "MIT", 32 | "licenseFilename": "LICENSE", 33 | "readmeFilename": "README.md", 34 | "peerDependencies": { 35 | "react": ">=16.8.1", 36 | "react-native": ">=0.60.0-rc.0 <1.0.x", 37 | "react-native-send-intent": "^1.2.3", 38 | "react-native-webview": "^11.3.2" 39 | }, 40 | "devDependencies": { 41 | "@types/react": "^17.0.3", 42 | "@types/react-native": "^0.63.52", 43 | "react": "^16.9.0", 44 | "react-native": "^0.61.5", 45 | "tslib": "^2.1.0", 46 | "typescript": "^4.2.3" 47 | }, 48 | "dependencies": { 49 | "react-native-send-intent": "^1.2.3", 50 | "react-native-webview": "^11.3.2" 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /payments.html: -------------------------------------------------------------------------------- 1 | ` 2 | 3 | 4 | 결제하기 5 | 9 | 10 | 11 | 12 | ` 13 | -------------------------------------------------------------------------------- /src/Payments.tsx: -------------------------------------------------------------------------------- 1 | import React, { useMemo } from "react"; 2 | import WebView from "react-native-webview"; 3 | import { Linking, Platform } from "react-native"; 4 | import SendIntentAndroid from "react-native-send-intent"; 5 | import { ShouldStartLoadRequest } from "react-native-webview/lib/WebViewTypes"; 6 | import { PaymentsRequestOptions } from "./types"; 7 | import { PAYMENTS_HTML_SOURCE } from "./constants"; 8 | 9 | const Payments: React.FC = (options) => { 10 | const initlizePaymentsPage = useMemo(() => { 11 | const reqeustOptionsString = JSON.stringify({ 12 | ...options, 13 | successUrl: 14 | "https://smsmsmsmin.github.io/tosspayments-react-native/callback", 15 | failUrl: 16 | "https://smsmsmsmin.github.io/tosspayments-react-native/callback", 17 | }); 18 | if (Platform.OS === "android") 19 | return `window.onload = function() { 20 | var clientKey = '${options.clientKey}'; 21 | var tossPayments = TossPayments(clientKey); 22 | tossPayments.requestPayment('카드', ${reqeustOptionsString}); 23 | }; 24 | true; 25 | `; 26 | return `(function() { 27 | var clientKey = '${options.clientKey}'; 28 | var tossPayments = TossPayments(clientKey); 29 | tossPayments.requestPayment('카드', ${reqeustOptionsString}); 30 | })(); 31 | true; 32 | `; 33 | }, [options]); 34 | 35 | const handleMessage = async (event: any) => { 36 | const data = JSON.parse(event?.nativeEvent?.data); 37 | if (data?.message) { 38 | return options.onError(data); 39 | } 40 | return options.onSuccess(data); 41 | }; 42 | 43 | const onShouldStartLoadWithRequest = ( 44 | event: ShouldStartLoadRequest 45 | ): boolean => { 46 | if ( 47 | event.url.startsWith("http://") || 48 | event.url.startsWith("https://") || 49 | event.url.startsWith("about:blank") 50 | ) { 51 | return true; 52 | } 53 | if (Platform.OS === "android") { 54 | // @ts-ignore 55 | SendIntentAndroid.openAppWithUri(event.url) 56 | .then((isOpened: boolean) => { 57 | if (!isOpened) { 58 | alert("앱 실행에 실패했습니다"); 59 | } 60 | return false; 61 | }) 62 | .catch((err: any) => { 63 | console.log(err); 64 | }); 65 | } else { 66 | Linking.openURL(event.url).catch((err) => { 67 | alert( 68 | "앱 실행에 실패했습니다. 설치가 되어있지 않은 경우 설치하기 버튼을 눌러주세요." 69 | ); 70 | }); 71 | return false; 72 | } 73 | return false; 74 | }; 75 | 76 | return ( 77 | 93 | ); 94 | }; 95 | 96 | export default Payments; 97 | -------------------------------------------------------------------------------- /src/constants.tsx: -------------------------------------------------------------------------------- 1 | export const PAYMENTS_HTML_SOURCE = ` 2 | 3 | 4 | 결제하기 5 | 6 | 7 | 8 | 9 | `; 10 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import Payments from "./Payments"; 2 | export default Payments; 3 | 4 | export * from "./constants"; 5 | export * from "./types"; 6 | -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- 1 | export interface PaymentsRequestOptions { 2 | clientKey: string; 3 | 4 | amount: number; 5 | orderId: string; 6 | orderName: string; 7 | cardCompany?: string; 8 | cardInstallmentPlan?: string; 9 | maxCardInstallmentPlan?: number; 10 | useCardPoint?: boolean; 11 | customerName?: string; 12 | customerEmail?: string; 13 | customerMobilePhone?: string; 14 | taxFreeAmount?: number; 15 | useInternationalCardOnly?: boolean; 16 | flowMode?: "DEFAULT" | "DIRECT"; 17 | discountCode?: string; 18 | appScheme?: string; 19 | 20 | onSuccess: (data: PaymentsSuccessResponse) => void; 21 | onError: (error: PaymentsFailResponse) => void; 22 | } 23 | 24 | export interface PaymentsSuccessResponse { 25 | paymentKey: string; 26 | orderId: string; 27 | amount: number; 28 | } 29 | 30 | export interface PaymentsFailResponse { 31 | code: string; 32 | message: string; 33 | } 34 | -------------------------------------------------------------------------------- /tosspayments-react-native.podspec: -------------------------------------------------------------------------------- 1 | # tosspayments-react-native.podspec 2 | 3 | require "json" 4 | 5 | package = JSON.parse(File.read(File.join(__dir__, "package.json"))) 6 | 7 | Pod::Spec.new do |s| 8 | s.name = "tosspayments-react-native" 9 | s.version = package["version"] 10 | s.summary = package["description"] 11 | s.description = <<-DESC 12 | tosspayments-react-native 13 | DESC 14 | s.homepage = "https://github.com/github_account/tosspayments-react-native" 15 | # brief license entry: 16 | s.license = "MIT" 17 | # optional - use expanded license entry instead: 18 | # s.license = { :type => "MIT", :file => "LICENSE" } 19 | s.authors = { "Lee Seungmin" => "lee@seungmin.io" } 20 | s.platforms = { :ios => "9.0" } 21 | s.source = { :git => "https://github.com/github_account/tosspayments-react-native.git", :tag => "#{s.version}" } 22 | 23 | s.source_files = "ios/**/*.{h,c,cc,cpp,m,mm,swift}" 24 | s.requires_arc = true 25 | 26 | s.dependency "React" 27 | # ... 28 | # s.dependency "..." 29 | end 30 | 31 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowSyntheticDefaultImports": true, 4 | "baseUrl": ".", 5 | "declaration": true, 6 | "esModuleInterop": true, 7 | "importHelpers": true, 8 | "jsx": "react", 9 | "module": "commonjs", 10 | "moduleResolution": "node", 11 | "paths": { 12 | "@/*": ["src/*"] 13 | }, 14 | "rootDir": "src", 15 | "skipLibCheck": true, 16 | "sourceMap": true, 17 | "strict": true, 18 | "target": "esnext", 19 | "outDir": "lib" 20 | }, 21 | "exclude": [ 22 | "node_modules", 23 | "lib", 24 | "esm", 25 | "**/__tests__", 26 | "**/__test__", 27 | "example" 28 | ] 29 | } 30 | --------------------------------------------------------------------------------