iamport-react-native 1.6.4 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +25 -320
  3. package/android/build.gradle +114 -24
  4. package/android/gradle.properties +4 -0
  5. package/android/src/main/AndroidManifest.xml +1 -3
  6. package/android/src/main/java/com/iamportreactnative/IamportReactNativePackage.kt +17 -0
  7. package/android/src/main/java/com/iamportreactnative/IamportReactNativeViewManager.kt +20 -0
  8. package/iamport-react-native.podspec +19 -0
  9. package/ios/IamportReactNative-Bridging-Header.h +1 -0
  10. package/ios/IamportReactNative.xcodeproj/project.pbxproj +47 -20
  11. package/ios/IamportReactNativeViewManager.m +12 -0
  12. package/ios/IamportReactNativeViewManager.swift +32 -0
  13. package/lib/commonjs/components/Certification/index.js +154 -0
  14. package/lib/commonjs/components/Certification/index.js.map +1 -0
  15. package/lib/commonjs/components/ErrorOnParams/index.js +66 -0
  16. package/lib/commonjs/components/ErrorOnParams/index.js.map +1 -0
  17. package/lib/commonjs/components/Loading/index.js +50 -0
  18. package/lib/commonjs/components/Loading/index.js.map +1 -0
  19. package/lib/commonjs/components/Payment/index.js +288 -0
  20. package/lib/commonjs/components/Payment/index.js.map +1 -0
  21. package/lib/commonjs/constants/index.js +103 -0
  22. package/lib/commonjs/constants/index.js.map +1 -0
  23. package/{android/src/main/assets → lib/commonjs}/img/iamport-logo.png +0 -0
  24. package/lib/commonjs/index.js +36 -0
  25. package/lib/commonjs/index.js.map +1 -0
  26. package/lib/commonjs/styles.js +31 -0
  27. package/lib/commonjs/styles.js.map +1 -0
  28. package/lib/commonjs/utils/IamportUrl.js +334 -0
  29. package/lib/commonjs/utils/IamportUrl.js.map +1 -0
  30. package/lib/commonjs/utils/Validation.js +72 -0
  31. package/lib/commonjs/utils/Validation.js.map +1 -0
  32. package/lib/commonjs/utils/ValidationForPayment.js +143 -0
  33. package/lib/commonjs/utils/ValidationForPayment.js.map +1 -0
  34. package/lib/module/components/Certification/index.js +132 -0
  35. package/lib/module/components/Certification/index.js.map +1 -0
  36. package/lib/module/components/ErrorOnParams/index.js +55 -0
  37. package/lib/module/components/ErrorOnParams/index.js.map +1 -0
  38. package/lib/module/components/Loading/index.js +38 -0
  39. package/lib/module/components/Loading/index.js.map +1 -0
  40. package/lib/module/components/Payment/index.js +266 -0
  41. package/lib/module/components/Payment/index.js.map +1 -0
  42. package/lib/module/constants/index.js +98 -0
  43. package/lib/module/constants/index.js.map +1 -0
  44. package/lib/module/img/iamport-logo.png +0 -0
  45. package/lib/module/index.js +10 -0
  46. package/lib/module/index.js.map +1 -0
  47. package/lib/module/styles.js +21 -0
  48. package/lib/module/styles.js.map +1 -0
  49. package/lib/module/utils/IamportUrl.js +322 -0
  50. package/lib/module/utils/IamportUrl.js.map +1 -0
  51. package/{src → lib/module}/utils/Validation.js +25 -9
  52. package/lib/module/utils/Validation.js.map +1 -0
  53. package/{src → lib/module}/utils/ValidationForPayment.js +23 -13
  54. package/lib/module/utils/ValidationForPayment.js.map +1 -0
  55. package/lib/typescript/components/Certification/index.d.ts +10 -0
  56. package/lib/typescript/components/ErrorOnParams/index.d.ts +5 -0
  57. package/lib/typescript/components/Loading/index.d.ts +2 -0
  58. package/lib/typescript/components/Payment/index.d.ts +10 -0
  59. package/lib/typescript/constants/index.d.ts +76 -0
  60. package/lib/typescript/index.d.ts +9 -0
  61. package/lib/typescript/styles.d.ts +19 -0
  62. package/lib/typescript/utils/IamportUrl.d.ts +19 -0
  63. package/lib/typescript/utils/Validation.d.ts +58 -0
  64. package/lib/typescript/utils/ValidationForPayment.d.ts +7 -0
  65. package/package.json +98 -20
  66. package/src/components/Certification/index.tsx +112 -0
  67. package/src/components/ErrorOnParams/{index.js → index.tsx} +20 -25
  68. package/src/components/Loading/{index.js → index.tsx} +9 -10
  69. package/src/components/Payment/index.tsx +243 -0
  70. package/src/constants/index.ts +150 -0
  71. package/src/{index.js → index.tsx} +4 -1
  72. package/src/{styles.js → styles.ts} +3 -1
  73. package/src/utils/IamportUrl.ts +319 -0
  74. package/src/utils/Validation.ts +101 -0
  75. package/src/utils/ValidationForPayment.ts +146 -0
  76. package/IamportReactNative.podspec +0 -19
  77. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  78. package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  79. package/android/gradlew +0 -172
  80. package/android/gradlew.bat +0 -84
  81. package/android/src/main/java/com/iamport/IamportModule.java +0 -88
  82. package/android/src/main/java/com/iamport/IamportPackage.java +0 -23
  83. package/ios/IamportReactNative.h +0 -11
  84. package/ios/IamportReactNative.m +0 -23
  85. package/ios/IamportReactNative.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  86. package/ios/IamportReactNative.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  87. package/ios/IamportReactNative.xcworkspace/contents.xcworkspacedata +0 -9
  88. package/manuals/CALLBACK.md +0 -68
  89. package/manuals/EXAMPLE.md +0 -175
  90. package/manuals/EXPO.md +0 -66
  91. package/manuals/INSTALL.md +0 -72
  92. package/manuals/SETTING.md +0 -72
  93. package/manuals/SUPPORT.md +0 -30
  94. package/manuals/TRANS.md +0 -122
  95. package/manuals/VERSION.md +0 -114
  96. package/manuals/assets/webview-peer-dependency.png +0 -0
  97. package/src/components/Certification/index.js +0 -99
  98. package/src/components/Payment/PaymentWebView.js +0 -285
  99. package/src/components/Payment/index.android.js +0 -51
  100. package/src/components/Payment/index.ios.js +0 -30
  101. package/src/constants/index.js +0 -83
  102. package/src/img/after-linking-iamport.png +0 -0
  103. package/src/img/after-linking-webview.png +0 -0
  104. package/src/img/allow-arbitrary.gif +0 -0
  105. package/src/img/android-studio-avd-manager.png +0 -0
  106. package/src/img/android-studio-build.png +0 -0
  107. package/src/img/app-scheme-registry.gif +0 -0
  108. package/src/img/expo-eject.png +0 -0
  109. package/src/img/ios-emulator-certification.png +0 -0
  110. package/src/img/ios-emulator-home.png +0 -0
  111. package/src/img/ios-emulator-payment.png +0 -0
  112. package/src/img/ios-trans-create-header-file-1.png +0 -0
  113. package/src/img/ios-trans-create-header-file-2.png +0 -0
  114. package/src/img/ios-trans-create-objectivec-file-1.png +0 -0
  115. package/src/img/ios-trans-create-objectivec-file-2.png +0 -0
  116. package/src/img/ios-trans-result.png +0 -0
  117. package/src/utils/IamportUrl.js +0 -103
@@ -0,0 +1,243 @@
1
+ import React, { createRef, useEffect, useRef, useState } from 'react';
2
+ import type { IMPData } from '../../utils/Validation';
3
+ import ValidationForPayment from '../../utils/ValidationForPayment';
4
+ import ErrorOnParams from '../ErrorOnParams';
5
+ import { Linking, Platform, View } from 'react-native';
6
+ import { IMPConst } from '../../constants';
7
+ import IamportUrl from '../../utils/IamportUrl';
8
+ import WebView from 'react-native-webview';
9
+ import viewStyles from '../../styles';
10
+ import Loading from '../Loading';
11
+ import type { WebViewSource } from 'react-native-webview/lib/WebViewTypes';
12
+
13
+ type Props = {
14
+ userCode: string;
15
+ tierCode?: string;
16
+ data: IMPData.PaymentData;
17
+ loading: any;
18
+ callback: (response: any) => any;
19
+ };
20
+
21
+ function Payment({ userCode, tierCode, data, loading, callback }: Props) {
22
+ const [webviewSource, setWebviewSource] = useState<WebViewSource>({
23
+ html: IMPConst.WEBVIEW_SOURCE_HTML,
24
+ });
25
+ const [isWebViewLoaded, setIsWebViewLoaded] = useState(false);
26
+ const [showLoading, setShowLoading] = useState(true);
27
+ const [isInicisTransPaid, setIsInicisTransPaid] = useState(false);
28
+ const webview = createRef<WebView>();
29
+ const smilepayRef = useRef(false);
30
+
31
+ useEffect(() => {
32
+ const { pg } = data;
33
+ if (
34
+ pg.startsWith('smilepay') &&
35
+ Platform.OS === 'ios' &&
36
+ !smilepayRef.current
37
+ ) {
38
+ /**
39
+ * [feature/smilepay] IOS - 스마일페이 대비 코드 작성
40
+ * 스마일페이 결제창을 iframe 방식으로 띄우기 때문에 WKWebView에서 서드 파티 쿠키가 허용되지 않아
41
+ * WKWebView의 baseUrl을 강제로 스마일페이 URL로 적용
42
+ */
43
+ setWebviewSource({
44
+ ...webviewSource,
45
+ baseUrl: IMPConst.SMILEPAY_BASE_URL,
46
+ });
47
+ smilepayRef.current = true;
48
+ }
49
+ }, [data, webviewSource]);
50
+
51
+ useEffect(() => {
52
+ const handleOpenURL = (event: { url: string }) => {
53
+ const { pg, pay_method } = data;
54
+ if (pay_method === 'trans') {
55
+ const iamportUrl = new IamportUrl(event.url);
56
+ /**
57
+ * [IOS] 웹 표준 이니시스 - 실시간 계좌이체 대비
58
+ * 아래 로직대로 동작해야 최종적으로 결제가 승인된 후 콜백 함수가 호출됨
59
+ * 1. 사파리 앱에서 복귀(app_scheme://imp_uid=%26merchant_uid=%26m_redirect_url=)
60
+ * 2. 최종 결제 승인을 위해 이니시스가 HTTP 리퀘스트 호출
61
+ * 3. "다음" 버튼이 있는 최종 화면으로 이동
62
+ * 4. "다음" 버튼을 클릭
63
+ * 5. 1번과 마찬가지로 app_scheme://imp_uid=%26merchant_uid=%26m_redirect_url=로 HTTP 리퀘스트 호출
64
+ * 6. 콜백 함수 호출
65
+ * 따라서 현재 handleOpenURL이 트리거 되는 사유가 1번 때문인지 5번 때문인지 구분이 필요하여
66
+ * 이를 위한 isInicisTransPaid 플래그 추가
67
+ */
68
+ if (pg.startsWith('html5_inicis') && Platform.OS === 'ios') {
69
+ if (isInicisTransPaid) {
70
+ webview.current?.injectJavaScript(`
71
+ window.location.href = "${
72
+ IMPConst.M_REDIRECT_URL
73
+ }?${iamportUrl.getInicisTransQuery()}";
74
+ `);
75
+ } else {
76
+ setIsInicisTransPaid(true);
77
+ }
78
+ }
79
+
80
+ /* 나이스 - 실시간 계좌이체 대비 */
81
+ if (pg.startsWith('nice')) {
82
+ const queryParameters = iamportUrl.getQuery();
83
+ const scheme = iamportUrl.scheme;
84
+ let niceTransRedirectionUrl;
85
+ if (scheme === data.app_scheme?.toLowerCase()) {
86
+ if (queryParameters.callbackparam1 != null) {
87
+ niceTransRedirectionUrl = queryParameters.callbackparam1;
88
+ }
89
+ }
90
+ webview.current?.injectJavaScript(`
91
+ window.location.href = "${niceTransRedirectionUrl}?${iamportUrl.getStringifiedQuery()}";
92
+ `);
93
+ }
94
+ }
95
+ };
96
+ Linking.addEventListener('url', handleOpenURL);
97
+ }, [data, isInicisTransPaid, webview]);
98
+
99
+ const removeLoadingNeeded = () => {
100
+ if (showLoading && Platform.OS === 'android') {
101
+ // 로딩상태. 안드로이드 플랫폼
102
+ if (isWebViewLoaded) {
103
+ // 웹뷰 로드 끝. 리디렉션 방식
104
+ return true;
105
+ }
106
+ return isIframeWayPayment();
107
+ }
108
+ // IOS
109
+ return false;
110
+ };
111
+
112
+ const isIframeWayPayment = () => {
113
+ const { pg, pay_method, customer_uid } = data;
114
+ if (pg.startsWith('html5_inicis') && customer_uid) {
115
+ // 이니시스 빌링결제
116
+ return true;
117
+ }
118
+ if (pg.startsWith('mobilians') && pay_method === 'phone') {
119
+ // 모빌리언스 휴대폰 소액결제
120
+ return true;
121
+ }
122
+ return (
123
+ pg.startsWith('danal') ||
124
+ pg.startsWith('danal_tpay') ||
125
+ pg.startsWith('smilepay') ||
126
+ pg.startsWith('payco') ||
127
+ pg.startsWith('bluewalnut')
128
+ );
129
+ };
130
+
131
+ const validation = new ValidationForPayment(
132
+ userCode,
133
+ loading,
134
+ callback,
135
+ data
136
+ );
137
+ if (validation.getIsValid()) {
138
+ const { wrapper, loadingContainer, webViewContainer } = viewStyles;
139
+ return (
140
+ <View style={wrapper}>
141
+ <View style={webViewContainer}>
142
+ <WebView
143
+ ref={webview}
144
+ source={webviewSource}
145
+ onLoadEnd={() => {
146
+ if (!isWebViewLoaded) {
147
+ data.m_redirect_url = IMPConst.M_REDIRECT_URL;
148
+ if (data.pg.startsWith('eximbay')) {
149
+ data.popup = false;
150
+ }
151
+
152
+ if (tierCode) {
153
+ webview.current?.injectJavaScript(`
154
+ setTimeout(function() { IMP.agency("${userCode}", "${tierCode}"); });
155
+ `);
156
+ } else {
157
+ webview.current?.injectJavaScript(`
158
+ setTimeout(function() { IMP.init("${userCode}"); });
159
+ `);
160
+ }
161
+ webview.current?.injectJavaScript(`
162
+ setTimeout(function() {
163
+ IMP.request_pay(${JSON.stringify(
164
+ data
165
+ )}, function(response) {
166
+ window.ReactNativeWebView.postMessage(JSON.stringify(response));
167
+ });
168
+ });
169
+ `);
170
+ setIsWebViewLoaded(true);
171
+ }
172
+
173
+ // only for Android
174
+ if (removeLoadingNeeded()) {
175
+ setShowLoading(false);
176
+ }
177
+ }}
178
+ /* PG사가 callback을 지원하는 경우, 결제결과를 받아 callback을 실행한다 */
179
+ onMessage={(e) => {
180
+ const { data } = e.nativeEvent;
181
+ /**
182
+ * [v1.6.0] 다날의 경우 response에 주문명(name)이 포함되어 있는데
183
+ * 주문명에 %가 들어갈 경우, decodeURIComponent시 URI malformed 에러가 발생하는 것 대비해
184
+ * 우선 encodeURIComponent를 한 후, decodeURIComponent가 끝나면
185
+ * 최종적으로 decodeURIComponent를 한 번 더 한다
186
+ */
187
+ let response = encodeURIComponent(data);
188
+ while (decodeURIComponent(response) !== data) {
189
+ response = decodeURIComponent(response);
190
+ }
191
+ response = decodeURIComponent(response);
192
+ response = JSON.parse(response);
193
+ callback(response);
194
+ }}
195
+ originWhitelist={['*']} // https://github.com/facebook/react-native/issues/19986
196
+ sharedCookiesEnabled={true}
197
+ onShouldStartLoadWithRequest={(request) => {
198
+ const { url } = request;
199
+ const iamportUrl = new IamportUrl(url);
200
+ if (iamportUrl.isAppUrl()) {
201
+ /* 3rd-party 앱 오픈 */
202
+ iamportUrl.launchApp().catch((e) => {
203
+ const { code, message } = e;
204
+ callback({
205
+ imp_success: false,
206
+ error_code: code,
207
+ error_msg: message,
208
+ });
209
+ });
210
+
211
+ return false;
212
+ }
213
+ if (iamportUrl.isPaymentOver()) {
214
+ callback(iamportUrl.getQuery());
215
+ return false;
216
+ }
217
+ if (
218
+ isWebViewLoaded &&
219
+ showLoading &&
220
+ iamportUrl.isIframeLoaded()
221
+ ) {
222
+ /**
223
+ * only for IOS
224
+ * iframe이 load되면(url이 about:blank 또는 https://service.iamport.kr이 아니면)
225
+ * webview의 loading 상태를 해제한다
226
+ */
227
+ setShowLoading(false);
228
+ }
229
+ return true;
230
+ }}
231
+ />
232
+ </View>
233
+ {showLoading && (
234
+ <View style={loadingContainer}>{loading || <Loading />}</View>
235
+ )}
236
+ </View>
237
+ );
238
+ }
239
+
240
+ return <ErrorOnParams message={validation.getMessage()} />;
241
+ }
242
+
243
+ export default Payment;
@@ -0,0 +1,150 @@
1
+ namespace IMPConst {
2
+ export const PG = [
3
+ 'html5_inicis',
4
+ 'inicis',
5
+ 'uplus',
6
+ 'kcp',
7
+ 'kcp_billing',
8
+ 'nice',
9
+ 'jtnet',
10
+ 'kakao',
11
+ 'kakaopay',
12
+ 'danal',
13
+ 'danal_tpay',
14
+ 'kicc',
15
+ 'settle',
16
+ 'mobilians',
17
+ 'payco',
18
+ 'eximbay',
19
+ 'paypal',
20
+ 'naverco',
21
+ 'naverpay',
22
+ 'smilepay',
23
+ 'chai',
24
+ 'payple',
25
+ 'alipay',
26
+ 'bluewalnut',
27
+ 'tosspay',
28
+ 'smartro',
29
+ ] as const;
30
+
31
+ export const PAY_METHOD = [
32
+ 'card',
33
+ 'trans',
34
+ 'vbank',
35
+ 'phone',
36
+ 'samsung',
37
+ 'kpay',
38
+ 'cultureland',
39
+ 'smartculture',
40
+ 'happymoney',
41
+ 'booknlife',
42
+ 'kakaopay',
43
+ 'lpay',
44
+ 'payco',
45
+ 'ssgpay',
46
+ 'tosspay',
47
+ // 엑심베이 전용
48
+ 'unionpay', // 유니온페이
49
+ 'alipay', // 알리페이
50
+ 'tenpay', // 텐페이
51
+ 'wechat', // 위챗페이
52
+ 'molpay', // 몰페이
53
+ 'paysbuy', // 태국 paysbuy
54
+ ] as const;
55
+ export const CURRENCY = ['KRW', 'USD', 'EUR', 'JPY'] as const;
56
+ export const LANGUAGE = ['ko', 'en'] as const;
57
+ export const EN_AVAILABLE_PG = [
58
+ 'inicis',
59
+ 'html5_inicis',
60
+ 'uplus',
61
+ 'nice',
62
+ 'eximbay',
63
+ ] as const;
64
+ export const CARRIERS = ['SKT', 'KTF', 'LGT', 'MVNO'] as const;
65
+
66
+ export const ANDROID_MARKET_PREFIX = 'market://details?id=';
67
+ export const IOS_MARKET_PREFIX = 'https://apps.apple.com/app/';
68
+ export const M_REDIRECT_URL = 'http://detectchangingwebview/iamport/rn';
69
+ export const NICE_TRANS_URL =
70
+ 'https://web.nicepay.co.kr/smart/bank/payTrans.jsp';
71
+ export const IMP_SDK_URL = 'https://service.iamport.kr';
72
+ export const SMILEPAY_BASE_URL = 'https://www.mysmilepay.com';
73
+
74
+ export const WEBVIEW_SOURCE_HTML = `
75
+ <html>
76
+ <head>
77
+ <meta http-equiv='content-type' content='text/html; charset=utf-8'>
78
+ <meta name='viewport' content='width=device-width, initial-scale=1.0'>
79
+
80
+ <script type='text/javascript' src='https://code.jquery.com/jquery-latest.min.js' ></script>
81
+ <script type='text/javascript' src='https://cdn.iamport.kr/js/iamport.payment-1.1.8.js'></script>
82
+ </head>
83
+ <body></body>
84
+ </html>
85
+ `;
86
+
87
+ export const ANDROID_APPSCHEME = {
88
+ ISP: 'ispmobile',
89
+ BANKPAY: 'kftc-bankpay',
90
+ KB_BANKPAY: 'kb-bankpay',
91
+ NH_BANKPAY: 'nhb-bankpay',
92
+ MG_BANKPAY: 'mg-bankpay',
93
+ KN_BANKPAY: 'kn-bankpay',
94
+ KAKAOPAY: 'kakaotalk',
95
+ SMILEPAY: 'smilepayapp',
96
+ CHAIPAY: 'chaipayment',
97
+ PAYCO: 'payco',
98
+ HYUNDAICARD: 'hdcardappcardansimclick',
99
+ TOSS: 'supertoss',
100
+ SHINHANCARD: 'shinhan-sr-ansimclick',
101
+ HANACARD: 'cloudpay',
102
+ SAMSUNGCARD: 'mpocket.online.ansimclick',
103
+ KBCARD: 'kb-acp',
104
+ NHCARD: 'nhallonepayansimclick',
105
+ CITICARD: 'citimobileapp',
106
+ LOTTECARD: 'lotteappcard',
107
+ LPAY: 'lpayapp',
108
+ SSGPAY: 'shinsegaeeasypayment',
109
+ KPAY: 'kpay',
110
+ PAYNOW: 'lguthepay-xpay',
111
+ WOORIWONCARD: 'com.wooricard.smartapp',
112
+ LPOINT: 'lmslpay',
113
+ KTFAUTH: 'ktauthexternalcall',
114
+ LGTAUTH: 'upluscorporation',
115
+ SKTAUTH: 'tauthlink',
116
+ } as const;
117
+
118
+ export const ANDROID_PACKAGE = {
119
+ PACKAGE_ISP: 'kvp.jjy.MispAndroid320',
120
+ PACKAGE_BANKPAY: 'com.kftc.bankpay.android',
121
+ PACKAGE_KB_BANKPAY: 'com.kbstar.liivbank',
122
+ PACKAGE_NH_BANKPAY: 'com.nh.cashcardapp',
123
+ PACKAGE_MG_BANKPAY: 'kr.co.kfcc.mobilebank',
124
+ PACKAGE_KN_BANKPAY: 'com.knb.psb',
125
+ PACKAGE_KAKAOPAY: 'com.kakao.talk',
126
+ PACKAGE_SMILEPAY: 'com.mysmilepay.app',
127
+ PACKAGE_CHAIPAY: 'finance.chai.app',
128
+ PACKAGE_PAYCO: 'com.nhnent.payapp',
129
+ PACKAGE_HYUNDAICARD: 'com.hyundaicard.appcard',
130
+ PACKAGE_TOSS: 'viva.republica.toss',
131
+ PACKAGE_SHINHANCARD: 'com.shcard.smartpay',
132
+ PACKAGE_HANACARD: 'com.hanaskard.paycla',
133
+ PACKAGE_SAMSUNGCARD: 'kr.co.samsungcard.mpocket',
134
+ PACKAGE_KBCARD: 'com.kbcard.cxh.appcard',
135
+ PACKAGE_NHCARD: 'nh.smart.nhallonepay',
136
+ PACKAGE_CITICARD: 'kr.co.citibank.citimobile',
137
+ PACKAGE_LOTTECARD: 'com.lcacApp',
138
+ PACKAGE_LPAY: 'com.lotte.lpay',
139
+ PACKAGE_SSGPAY: 'com.ssg.serviceapp.android.egiftcertificate',
140
+ PACKAGE_KPAY: 'com.inicis.kpay',
141
+ PACKAGE_PAYNOW: 'com.lguplus.paynow',
142
+ PACKAGE_WOORIWONCARD: 'com.wooricard.smartapp',
143
+ PACKAGE_LPOINT: 'com.lottemembers.android',
144
+ PACKAGE_KTFAUTH: 'com.kt.ktauth',
145
+ PACKAGE_LGTAUTH: 'com.lguplus.smartotp',
146
+ PACKAGE_SKTAUTH: 'com.sktelecom.tauth',
147
+ } as const;
148
+ }
149
+
150
+ export { IMPConst };
@@ -1,9 +1,12 @@
1
1
  import Payment from './components/Payment';
2
2
  import Certification from './components/Certification';
3
3
 
4
+ export { IMPData } from './utils/Validation';
5
+ export { IMPConst } from './constants';
6
+
4
7
  const IMP = {
5
8
  Payment,
6
9
  Certification,
7
10
  };
8
11
 
9
- export default IMP;
12
+ export default IMP;
@@ -1,6 +1,6 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
 
3
- export const viewStyles = StyleSheet.create({
3
+ const viewStyles = StyleSheet.create({
4
4
  wrapper: {
5
5
  flex: 1,
6
6
  },
@@ -18,3 +18,5 @@ export const viewStyles = StyleSheet.create({
18
18
  zIndex: 0,
19
19
  },
20
20
  });
21
+
22
+ export default viewStyles;