Skip to content

Commit ab9d0d9

Browse files
author
bootpay
committed
is_show_close_button 옵션 적용
1 parent c528bb7 commit ab9d0d9

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

bootpay/src/main/java/kr/co/bootpay/model/BootExtra.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public final class BootExtra {
3434
private String theme = "purple"; // 통합 결제창 색상 지정 (purple, red, custom 지정 가능 )
3535
private String custom_background = ""; // theme가 custom인 경우 배경 색 지정 가능 ( ex: #f2f2f2 )
3636
private String custom_font_color = ""; // theme가 custom인 경우 폰트색 지정 가능 ( ex: #333333 )
37+
private int is_show_close_button = 1; // 닫기 버튼을 제공하지 않는 특정 PG사에 부트페이가 닫기 버튼을 삽입할지 말지
3738

3839

3940

@@ -206,7 +207,8 @@ public final String toJson() {
206207
theme(),
207208
custom_background(),
208209
custom_font_color(),
209-
oneStore()
210+
oneStore(),
211+
isShowCloseButton()
210212
);
211213
}
212214

@@ -296,4 +298,13 @@ public String custom_font_color() {
296298
if(this.custom_font_color == null) return "";
297299
return String.format(Locale.KOREA, "custom_font_color: '%s'", this.custom_font_color);
298300
}
301+
302+
public String isShowCloseButton() {
303+
return String.format(Locale.KOREA, "is_show_close_button: %d", this.is_show_close_button);
304+
}
305+
306+
public BootExtra setIsShowCloseButton(int is_show_close_button) {
307+
this.is_show_close_button = is_show_close_button;
308+
return this;
309+
}
299310
}
-9.37 KB
Binary file not shown.

local.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# Location of the SDK. This is only used by Gradle.
55
# For customization when using a Version Control System, please read the
66
# header note.
7-
#Mon May 24 13:09:44 KST 2021
7+
#Mon Feb 21 09:02:22 KST 2022
8+
sdk.dir=/Users/taesupyoon/Library/Android/sdk
89
ndk.dir=/Users/ehowlsla/Library/Android/sdk/ndk-bundle
9-
sdk.dir=/Users/bootpay/Library/Android/sdk

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void goRequest(View v) {
7474
// Spinner mySpinner = (Spinner) findViewById(R.id.your_spinner);
7575
// String text = mySpinner.getSelectedItem().toString();
7676
BootUser bootUser = new BootUser().setPhone("010-1234-5678"); // 구매자 정보
77-
BootExtra bootExtra = new BootExtra().setQuotas(new int[] {0,2,3}); // 일시불, 2개월, 3개월 할부 허용, 할부는 최대 12개월까지 사용됨 (5만원 이상 구매시 할부허용 범위)
77+
BootExtra bootExtra = new BootExtra().setQuotas(new int[] {0,2,3}).setIsShowCloseButton(0); // 일시불, 2개월, 3개월 할부 허용, 할부는 최대 12개월까지 사용됨 (5만원 이상 구매시 할부허용 범위)
7878
Double price = 1000d;
7979
try {
8080
price = Double.parseDouble(edit_price.getText().toString());

0 commit comments

Comments
 (0)