Skip to content

Commit 96c862e

Browse files
committed
웰컴 페이먼츠 추가
1 parent 2f0027c commit 96c862e

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ public BootpayBuilder setPG(PG pg) {
135135
case ONESTORE:
136136
request.setPG("onestore");
137137
break;
138+
case WELCOME:
139+
request.setPG("welcome");
140+
break;
138141

139142
}
140143
return this;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ private static void pgHashInit() {
2323
pgHash.put("페이레터", "payletter");
2424
pgHash.put("KICC", "easypay");
2525
pgHash.put("원스토어", "onestore");
26+
pgHash.put("웰컴페이먼츠", "welcome");
2627

2728
}
2829

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import kr.co.bootpay.pref.UserInfo;
3737

3838
public class BootpayWebView extends WebView {
39-
private static final String BOOTPAY = "https://inapp.bootpay.co.kr/3.2.4/production.html";
39+
private static final String BOOTPAY = "https://inapp.bootpay.co.kr/3.2.5/production.html";
4040

4141
private Dialog dialog;
4242
// private ConnectivityManager connManager;

bootpay/src/main/java/kr/co/bootpay/enums/PG.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ public enum PG {
1616
MOBILIANS,
1717
PAYLETTER,
1818
ONESTORE,
19-
BOOTPAY
19+
WELCOME,
20+
BOOTPAY,
2021
}

bootpay/src/main/java/kr/co/bootpay/valid/PGAvailable.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class PGAvailable {
2626
put(PG.TPAY, Arrays.asList(Method.PHONE, Method.CARD, Method.BANK, Method.VBANK));
2727
put(PG.MOBILIANS, Arrays.asList(Method.PHONE));
2828
put(PG.PAYLETTER, Arrays.asList(Method.PHONE, Method.CARD, Method.BANK, Method.VBANK, Method.SUBSCRIPT_CARD, Method.CARD_REBILL));
29+
put(PG.WELCOME, Arrays.asList(Method.PHONE, Method.CARD, Method.BANK, Method.VBANK, Method.SUBSCRIPT_CARD, Method.CARD_REBILL));
2930
put(PG.ONESTORE, Arrays.asList(Method.PHONE, Method.CARD, Method.BANK, Method.VBANK, Method.EASY_BANK, Method.EASY_CARD));
3031
}};
3132

@@ -84,6 +85,8 @@ public static PG stringToPG(String pg) {
8485
return PG.PAYLETTER;
8586
case "onestore":
8687
return PG.ONESTORE;
88+
case "welcome":
89+
return PG.WELCOME;
8790
case "bootpay":
8891
return PG.BOOTPAY;
8992
default:
@@ -125,6 +128,8 @@ public static String pgToString(PG pg) {
125128
return "payco";
126129
case ONESTORE:
127130
return "onestore";
131+
case WELCOME:
132+
return "welcome";
128133
}
129134
return "";
130135
}

local.properties

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
## This file is automatically generated by Android Studio.
2-
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3-
#
4-
# This file must *NOT* be checked into Version Control Systems,
1+
## This file must *NOT* be checked into Version Control Systems,
52
# as it contains information specific to your local configuration.
63
#
74
# Location of the SDK. This is only used by Gradle.
85
# For customization when using a Version Control System, please read the
96
# header note.
10-
#Thu May 10 15:42:00 KST 2018
7+
#Fri Jun 19 09:13:48 KST 2020
118
ndk.dir=/Users/ehowlsla/Library/Android/sdk/ndk-bundle
12-
sdk.dir=/Users/ehowlsla/Library/Android/sdk
9+
sdk.dir=/Users/taesupyoon/Library/Android/sdk

sample/src/main/java/bootpay/co/kr/samplepayment/NativeActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ void goPGPay() {
7979
Bootpay.init(getFragmentManager())
8080
.setContext(this)
8181
.setApplicationId(application_id) // 해당 프로젝트(안드로이드)의 application id 값
82-
.setPG(PG.PAYLETTER) // 결제할 PG 사
83-
.setMethod(Method.CARD_REBILL)
82+
.setPG(PG.WELCOME) // 결제할 PG 사
83+
.setMethod(Method.CARD)
8484
.setBootExtra(bootExtra)
8585
.setBootUser(bootUser)
86-
// .setOrderId("1234")
86+
.setOrderId("1234")
8787
// .setUserPhone("010-1234-5678") // 구매자 전화번호
8888
.setUX(UX.PG_DIALOG)
8989
// .setMethod(Method.CARD) // 결제수단
9090
//.isShowAgree(true)
9191
.setName("bootpay kb card test") // 결제할 상품명
9292
.setOrderId("1232352354") // 결제 고유번호
93-
// .setPrice(1000) // 결제할 금액
93+
.setPrice(1000) // 결제할 금액
9494
.setAccountExpireAt("2019-07-16")
9595
.addItem("마우스", 1, "ITEM_CODE_MOUSE", 500) // 주문정보에 담길 상품정보, 통계를 위해 사용
9696
.addItem("키보드", 1, "ITEM_CODE_KEYBOARD", 500, "패션", "여성상의", "블라우스") // 주문정보에 담길 상품정보, 통계를 위해 사용

0 commit comments

Comments
 (0)