Skip to content

Commit a0844c5

Browse files
author
ehowlsla
committed
상품명 ' 글자 허용
1 parent 17b06b4 commit a0844c5

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
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.125'
35+
implementation 'com.github.bootpay:client_android_java:2.0.126'
3636
}
3737
```
3838

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ internal class BootpayWebView @JvmOverloads constructor(context: Context, attrs:
277277
// }"
278278

279279
private fun items() = "items:${
280-
request?.items?.map { "{item_name:'${it.name.replace("\"", "'").replace("'", "\\'")}',qty:${it.qty},unique:'${it.unique}',price:${it.price},cat1:'${it.cat1}',cat2:'${it.cat2}',cat3:'${it.cat3}'}" }
280+
request?.items?.map { "{item_name:'${it.name.replace("\"", "'").replace("'", "\\'")}',qty:${it.qty},unique:'${it.unique}',price:${it.price},cat1:'${it.cat1.replace("\"", "'").replace("'", "\\'")}',cat2:'${it.cat2.replace("\"", "'").replace("'", "\\'")}',cat3:'${it.cat3.replace("\"", "'").replace("'", "\\'")}'}" }
281281
}"
282282

283283
// private fun quotas() = ""
@@ -295,7 +295,6 @@ internal class BootpayWebView @JvmOverloads constructor(context: Context, attrs:
295295

296296
private fun loadParams(vararg script: String) {
297297

298-
Log.d("loadParams", script.joinToString(""));
299298
load("${script.joinToString("")};")
300299
}
301300

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.125"
20+
private val ver = "2.0.126"
2121

2222
fun login(
2323
id: String?,

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import kr.co.bootpay.model.StatItem;
2323

2424
public class NativeActivity extends Activity {
25-
private int stuck = 0;
25+
private int stuck = 1;
2626

2727
@Override
2828
protected void onCreate(Bundle savedInstanceState) {
@@ -67,12 +67,13 @@ public void onClick_request(View v) {
6767
.setOrderId("1234") // 결제 고유번호expire_month
6868
// .setAccountExpireAt("2018-09-22") // 가상계좌 입금기간 제한 ( yyyy-mm-dd 포멧으로 입력해주세요. 가상계좌만 적용됩니다. 오늘 날짜보다 더 뒤(미래)여야 합니다 )
6969
.setQuotas(new int[] {0,2,3}) // 일시불, 2개월, 3개월 할부 허용, 할부는 최대 12개월까지 사용됨 (5만원 이상 구매시 할부허용 범위)
70-
.setPrice(50000) // 결제할 금액
70+
.setPrice(10000) // 결제할 금액
7171
.addItem("마우's 스", 1, "ITEM_CODE_MOUSE", 100) // 주문정보에 담길 상품정보, 통계를 위해 사용
7272
.addItem("키보드", 1, "ITEM_CODE_KEYBOARD", 200, "패션", "여성상의", "블라우스") // 주문정보에 담길 상품정보, 통계를 위해 사용
7373
.onConfirm(new ConfirmListener() { // 결제가 진행되기 바로 직전 호출되는 함수로, 주로 재고처리 등의 로직이 수행
7474
@Override
7575
public void onConfirm(@Nullable String message) {
76+
7677
if (0 < stuck) Bootpay.confirm(message); // 재고가 있을 경우.
7778
else Bootpay.removePaymentWindow(); // 재고가 없어 중간에 결제창을 닫고 싶을 경우
7879
Log.d("confirm", message);
@@ -93,6 +94,7 @@ public void onReady(@Nullable String message) {
9394
.onCancel(new CancelListener() { // 결제 취소시 호출
9495
@Override
9596
public void onCancel(@Nullable String message) {
97+
9698
Log.d("cancel", message);
9799
}
98100
})
@@ -102,7 +104,8 @@ public void onError(@Nullable String message) {
102104
Log.d("error", message);
103105
}
104106
})
105-
.onClose(new CloseListener() { //결제창이 닫힐때 실행되는 부분
107+
.onClose(
108+
new CloseListener() { //결제창이 닫힐때 실행되는 부분
106109
@Override
107110
public void onClose(String message) {
108111
Log.d("close", "close");

0 commit comments

Comments
 (0)