Skip to content

Commit 3369fb4

Browse files
committed
생체인증 결제 추가중
1 parent 673adaf commit 3369fb4

File tree

101 files changed

+4545
-502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+4545
-502
lines changed

bootpay/build.gradle

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ apply plugin: 'com.android.library'
33

44

55
android {
6-
compileSdkVersion 26
6+
compileSdkVersion 28
77
buildToolsVersion '28.0.3'
88

99
defaultConfig {
10-
minSdkVersion 17
11-
targetSdkVersion 26
10+
minSdkVersion 23
11+
targetSdkVersion 28
1212
versionCode 1
1313
versionName "1.0"
1414
}
@@ -25,8 +25,10 @@ android {
2525
}
2626

2727
dependencies {
28-
29-
implementation 'com.android.support:appcompat-v7:26.1.0'// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib
28+
api 'com.android.support:design:28.+'
29+
implementation 'com.android.support:appcompat-v7:28.+'
30+
// implementation 'com.android.support:appcompat-v7:26.1.0'
31+
// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib
3032

3133
//unity jar 패키징 시 아래 주석을 풀어 사용 (아래 한줄만)
3234

@@ -52,13 +54,12 @@ dependencies {
5254

5355
implementation 'com.github.franmontiel:PersistentCookieJar:v1.0.1'
5456

55-
5657
implementation 'com.google.android.gms:play-services-ads-identifier:16.0.0'
57-
58-
5958
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: '1.3.21'
6059

61-
60+
implementation 'dev.samstevens.totp:totp:1.7'
61+
implementation 'androidx.biometric:biometric:1.0.1'
62+
implementation "androidx.constraintlayout:constraintlayout:2.0.0"
6263
}
6364

6465
repositories {

bootpay/src/.DS_Store

2 KB
Binary file not shown.

bootpay/src/main/.DS_Store

0 Bytes
Binary file not shown.

bootpay/src/main/AndroidManifest.xml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@
88
<application
99
android:allowBackup="true"
1010
android:supportsRtl="true">
11-
<activity android:name=".BootpayInnerActivity" android:screenOrientation="portrait">
12-
<intent-filter>
13-
<action android:name="android.intent.action.VIEW"/>
14-
<data android:host="app2app" android:scheme="bootpay" />
15-
</intent-filter>
16-
</activity>
11+
<activity android:name=".bio.activity.BootpayBioActivity" android:screenOrientation="portrait" android:theme="@style/Theme.Transparent" />
12+
<activity android:name=".bio.activity.BootpayBioWebviewActivity" android:screenOrientation="portrait"/>
1713
</application>
1814

19-
15+
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
16+
<uses-permission android:name="android.permission.VIBRATE"/>
2017
</manifest>
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

bootpay/src/main/java/kr/co/bootpay/Bootpay.java

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
1515

16+
import kr.co.bootpay.enums.PG;
1617
import kr.co.bootpay.model.BootUser;
1718
import kr.co.bootpay.pref.UserInfo;
1819

@@ -106,6 +107,7 @@ public static BootpayBuilder init(Context context) {
106107
return builder = new BootpayBuilder(context);
107108
}
108109

110+
109111
/******************
110112
* 부트페이 일반결제 관련 로직
111113
******************/
@@ -122,6 +124,11 @@ public static BootpayBuilder init(FragmentManager fragmentManager) {
122124
return builder = new BootpayBuilder(fragmentManager);
123125
}
124126

127+
public static BootpayBuilder init(androidx.fragment.app.FragmentManager fragmentManager) {
128+
// fragmentManager.c
129+
return builder = new BootpayBuilder(fragmentManager);
130+
}
131+
125132
public static void finish() {
126133
builder = null;
127134
}
@@ -133,4 +140,47 @@ public static void confirm(String data) {
133140
public static void removePaymentWindow() {
134141
if (builder != null) builder.removePaymentWindow();
135142
}
143+
144+
public static void dismiss() {
145+
if (builder != null) builder.dismiss();
146+
}
147+
148+
public static String getPG(PG pg) {
149+
switch (pg) {
150+
case BOOTPAY:
151+
return "bootpay";
152+
case PAYAPP:
153+
return "payapp";
154+
case DANAL:
155+
return "danal";
156+
case KCP:
157+
return "kcp";
158+
case INICIS:
159+
return "inicis";
160+
case LGUP:
161+
return "lgup";
162+
case KAKAO:
163+
return "kakao";
164+
case EASYPAY:
165+
case KICC:
166+
return "easypay";
167+
case TPAY:
168+
case JTNET:
169+
return "tpay";
170+
case MOBILIANS:
171+
return "mobilians";
172+
case PAYLETTER:
173+
return "payletter";
174+
case NICEPAY:
175+
return "nicepay";
176+
case PAYCO:
177+
return "payco";
178+
case ONESTORE:
179+
return "onestore";
180+
case WELCOME:
181+
return "welcome";
182+
default:
183+
return "";
184+
}
185+
}
136186
}

0 commit comments

Comments
 (0)