Skip to content

Commit 9c4ccb0

Browse files
author
ehowlsla
committed
version update 2.1.1
1 parent 20c3804 commit 9c4ccb0

File tree

8 files changed

+20
-10
lines changed

8 files changed

+20
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ allprojects {
3232
```gradle
3333
dependencies {
3434
...
35-
implementation 'com.github.bootpay:client_android_java:2.0.19'
35+
implementation 'com.github.bootpay:client_android_java:2.1.1'
3636
}
3737
```
3838

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@ public Builder setOrderId(String orderId) {
184184
return this;
185185
}
186186

187+
public Builder setUseOrderId(Integer use_order_id) {
188+
result.setUse_order_id(use_order_id);
189+
return this;
190+
}
191+
187192
public Builder setExpireMonth(int expireMonth) {
188193
result.setExtraExpireMonth(expireMonth);
189194
return this;

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import java.net.URISyntaxException
2626
internal class BootpayWebView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0): WebView(context, attrs, defStyleAttr) {
2727

2828
companion object {
29-
private const val BOOTPAY = "https://inapp.bootpay.co.kr/2.0.19/production.html"
29+
private const val BOOTPAY = "https://inapp.bootpay.co.kr/2.1.1/production.html"
3030

3131
private const val CLOSE = -3
3232

@@ -109,7 +109,8 @@ internal class BootpayWebView @JvmOverloads constructor(context: Context, attrs:
109109
),
110110
params(),
111111
accountExpireAt(),
112-
order_id()
112+
order_id(),
113+
use_order_id()
113114
),
114115
error(),
115116
cancel(),
@@ -284,6 +285,8 @@ internal class BootpayWebView @JvmOverloads constructor(context: Context, attrs:
284285

285286
private fun order_id() = request?.order_id?.let { "order_id:'$it'" } ?: ""
286287

288+
private fun use_order_id() = request?.use_order_id?.let { "use_order_id:'$it'" } ?: "0"
289+
287290
fun setData(request: Request?): BootpayWebView {
288291
this.request = request
289292
return this

bootpay/src/main/java/kr/co/bootpay/analytics/BootpayAnalyticsPresenter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal class BootpayAnalyticsPresenter(context: Context) {
1717
private val rest: RestService by lazy { RestService(context) }
1818
private val executor: Scheduler by lazy { Schedulers.from(Executors.newCachedThreadPool()) }
1919

20-
private val ver = "2.0.19"
20+
private val ver = "2.1.1"
2121

2222
fun login(
2323
id: String?,

bootpay/src/main/java/kr/co/bootpay/model/Request.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Request {
1111
var price: Long = 0
1212
var pg: String = ""
1313
var order_id: String = ""
14+
var use_order_id: Int = 0
1415
var method: String = ""
1516
var account_expire_at: String = ""
1617
var unit: String = ""

sample/src/main/assets/html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
55
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
66
<meta content="5b14c0ffb6d49c40cda92c4e" name="bootpay-application-id">
7-
<script src="https://cdn.bootpay.co.kr/js/bootpay-2.0.19.min.js" type="application/javascript"></script>
7+
<script src="https://cdn.bootpay.co.kr/js/bootpay-2.1.1.min.js" type="application/javascript"></script>
88
<script>
99
function payTest() {
1010
var android_application_id = '5b14c0ffb6d49c40cda92c4e'

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ protected void onCreate(Bundle savedInstanceState) {
3030
setContentView(R.layout.activity_native);
3131

3232
// 초기설정 - 해당 프로젝트(안드로이드)의 application id 값을 설정합니다. 결제와 통계를 위해 꼭 필요합니다.
33-
BootpayAnalytics.init(this, "59a7e647396fa64fcad4a8c2");
34-
// BootpayAnalytics.init(this, "59bfc733e13f337dbd6ca489");
33+
BootpayAnalytics.init(this, "5b14c0ffb6d49c40cda92c4e");
34+
// BootpayAnalytics.init(this, "59a7e647396fa64fcad4a8c2");
35+
3536

3637

3738
// 통계 - 유저 로그인 시점에 호출
@@ -60,9 +61,9 @@ public void onClick_request(View v) {
6061
// 결제호출
6162
Bootpay.init(getFragmentManager())
6263
.setApplicationId("5b14c0ffb6d49c40cda92c4e") // 해당 프로젝트(안드로이드)의 application id 값
63-
.setPG(PG.INICIS) // 결제할 PG 사
64+
.setPG(PG.DANAL) // 결제할 PG 사
6465
.setUserPhone("010-1234-5678") // 구매자 전화번호
65-
.setMethod(Method.CARD) // 결제수단
66+
.setMethod(Method.PHONE) // 결제수단
6667
.setName("맥\"북프로's 임다") // 결제할 상품명
6768
.setOrderId("1234") // 결제 고유번호expire_month
6869
// .setAccountExpireAt("2018-09-22") // 가상계좌 입금기간 제한 ( yyyy-mm-dd 포멧으로 입력해주세요. 가상계좌만 적용됩니다. 오늘 날짜보다 더 뒤(미래)여야 합니다 )

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private Boolean isMarket(String url) {
156156
}
157157

158158
private Boolean isSpecialCase(String url) {
159-
return url.matches("^shinhan\\S+$");
159+
return url.matches("^shinhan\\S+$") || url.startsWith("kftc-bankpay://");
160160
}
161161

162162
private Boolean isExistInfo(Intent intent, Context context) {

0 commit comments

Comments
 (0)