Skip to content

Commit 31c10a3

Browse files
committed
4.2.6 update
1 parent 85ef096 commit 31c10a3

6 files changed

Lines changed: 23 additions & 5 deletions

File tree

Bootpay.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'Bootpay'
11-
s.version = '4.4.0'
11+
s.version = '4.4.1'
1212
s.summary = 'Bootpay에서 지원하는 공식 Swift 라이브러리 입니다. ios 9 이상부터 사용가능합니다.'
1313

1414
# This description is used to generate tags and improve search results.

Bootpay/Classes/constants/BootpayConstant.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Foundation
1111

1212
public class BootpayConstant {
1313

14-
public static let CDN_URL = "https://webview.bootpay.co.kr/4.2.2";
14+
public static let CDN_URL = "https://webview.bootpay.co.kr/4.2.6";
1515
public static let BRIDGE_NAME = "Bootpay";
1616

1717
public static let ENV_SWIFT = 0

Bootpay/Classes/models/BootExtra.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ public class BootExtra: NSObject, Mappable, Codable {
6565
enableEasyPayments <- map["enable_easy_payments"]
6666
firstSubscriptionComment <- map["first_subscription_comment"]
6767
confirmGraceSeconds <- map["confirm_grace_seconds"]
68+
69+
subscribeTestPayment <- map["subscribe_test_payment"]
70+
ageLimit <- map["age_limit"]
6871
}
6972

7073
@objc public var cardQuota: String? //할부허용 범위 (5만원 이상 구매시)
@@ -99,6 +102,9 @@ public class BootExtra: NSObject, Mappable, Codable {
99102
@objc public var timeout: Int = 30 //결제만료 시간 (분단위)
100103
@objc public var commonEventWebhook = false //창닫기, 결제만료 웹훅 추가
101104

105+
@objc public var ageLimit: Int = 0 //본인인증 나이제한
106+
@objc public var subscribeTestPayment = true //100원 결제 후 취소
107+
102108
@objc public var enableCardCompanies: [String]? //https://developers.nicepay.co.kr/manual-code-partner.php '01,02,03,04,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,31,32,33,34,35,36,37,38,39,40,41,42'
103109
@objc public var exceptCardCompanies: [String]? //제외할 카드사 리스트 ( enable_card_companies가 우선순위를 갖는다 )
104110
@objc public var enableEasyPayments: [String]? //노출될 간편결제 리스트

Bootpay/Classes/webview/BootpayWebView.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ extension BootpayWebView: WKNavigationDelegate, WKUIDelegate, WKScriptMessageHan
235235
webView.removeFromSuperview()
236236
}
237237

238-
open func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
238+
open func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
239239

240240
if(message.name == BootpayConstant.BRIDGE_NAME) {
241241

@@ -300,11 +300,18 @@ extension BootpayWebView: WKNavigationDelegate, WKUIDelegate, WKScriptMessageHan
300300
} else if event == "done" {
301301
showProgressBar(false)
302302
Bootpay.shared.done?(data)
303+
303304
if(Bootpay.shared.payload?.extra?.displaySuccessResult != true && isRedirect) {
304305
//redirect는 닫기 이벤트를 안줘서 처리해야함
305306
Bootpay.shared.debounceClose()
306-
// Bootpay.shared.close?()
307307
Bootpay.removePaymentWindow()
308+
} else {
309+
guard let content = data["data"] as? [String : Any], let method_origin_symbol = content["method_origin_symbol"] as? String else { return }
310+
if(method_origin_symbol == "card_rebill_rest") {
311+
Bootpay.shared.debounceClose()
312+
// Bootpay.shared.close?()
313+
Bootpay.removePaymentWindow()
314+
}
308315
}
309316
} else if event == "close" {
310317
showProgressBar(false)

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.4.1
2+
* js 4.2.6 update
3+
* 카드자동결제 결제수단 등록 후 조건부적 안닫히는 현상 개선
4+
15
## 4.4.0
26
* js 4.2.2 update
37

Example/Bootpay/NativeController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ print("ios")
125125
payload.price = 1000
126126
payload.orderId = String(NSTimeIntervalSince1970)
127127
payload.pg = "나이스페이"
128-
payload.method = "네이버페이"
128+
// payload.method = "네이버페이"
129129
payload.orderName = "테스트 아이템"
130130
payload.extra = BootExtra()
131131
payload.extra?.displaySuccessResult = true
@@ -192,6 +192,7 @@ print("ios")
192192

193193
@objc func requestPayment() {
194194
let payload = generatePayload()
195+
payload.method = "카드"
195196

196197
Bootpay.requestPayment(
197198
viewController: self,

0 commit comments

Comments
 (0)