Skip to content

Commit e201f86

Browse files
author
ehowlsla
committed
Object C Support
1 parent 8f19f1f commit e201f86

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Example/SwiftyBootpay/NativeController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ extension NativeController {
124124
$0.pg = "danal" // 결제할 PG사
125125
$0.phone = "010-1234-5678" // 결제할 PG사
126126
// $0.account_expire_at = "2018-09-25" // 가상계좌 입금기간 제한 ( yyyy-mm-dd 포멧으로 입력해주세요. 가상계좌만 적용됩니다. 오늘 날짜보다 더 뒤(미래)여야 합니다 )
127-
$0.method = "phone" // 결제수단
127+
$0.method = "card" // 결제수단
128128
$0.sendable = self // 이벤트를 처리할 protocol receiver
129129
$0.quotas = [0,2,3] // // 5만원 이상일 경우 할부 허용범위 설정 가능, (예제는 일시불, 2개월 할부, 3개월 할부 허용)
130130
}

SwiftyBootpay.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 = 'SwiftyBootpay'
11-
s.version = '2.1.17'
11+
s.version = '2.1.18'
1212
s.summary = 'PG Plugin For Swift'
1313

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

SwiftyBootpay/Classes/BootpayAnalytics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class BootpayAnalytics: NSObject {
8383
@objc public static let sharedInstance = BootpayAnalytics()
8484
var application_id = ""
8585
public var uuid = ""
86-
let ver = "2.1.17"
86+
let ver = "2.1.18"
8787
var sk = ""
8888
var sk_time = 0 // session 유지시간 기본 30분
8989
var last_time = 0 // 접속 종료 시간

SwiftyBootpay/Classes/BootpayController.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,19 @@ extension BootpayController: Params {
125125
self.items = items
126126
}
127127

128-
@objc public func transactionConfirm(data: [String: Any]) {
128+
@objc(transactionConfirm:)
129+
public func transactionConfirm(data: [String: Any]) {
129130
let json = dicToJsonString(data).replace(target: "'", withString: "\\'")
130131
wv.doJavascript("window.BootPay.transactionConfirm(\(json));")
131132
}
132133

133-
@objc public func removePaymentWindow() {
134+
@objc(removePaymentWindow)
135+
public func removePaymentWindow() {
134136
wv.doJavascript("window.BootPay.removePaymentWindow();")
135137
}
136138

137-
@objc public func dismiss() {
139+
@objc(dismiss)
140+
public func dismiss() {
138141
self.dismiss(animated: true, completion: nil)
139142
}
140143

0 commit comments

Comments
 (0)