Skip to content

Commit 4588049

Browse files
committed
modal 변수 추가
1 parent 8163768 commit 4588049

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

Binary file not shown.

SwiftyBootpay.podspec

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

1010
Pod::Spec.new do |s|
1111
s.name = 'SwiftyBootpay'
12-
s.version = '3.3.83'
12+
s.version = '3.3.831'
1313
s.summary = 'Bootpay PG Plugin For Swift'
1414

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

SwiftyBootpay/Classes/Bootpay.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,16 @@ class BootpayDefault {
141141

142142

143143

144-
public static func request(_ viewController: UIViewController, sendable: BootpayRequestProtocol?, payload: BootpayPayload, user: BootpayUser? = nil, items: [BootpayItem]? = nil, extra: BootpayExtra? = nil, smsPayload: SMSPayload? = nil, remoteForm: RemoteOrderForm? = nil, remotePre: RemoteOrderPre? = nil, addView: Bool? = false, _ gameObject: String = "") {
144+
public static func request(_ viewController: UIViewController, sendable: BootpayRequestProtocol?, payload: BootpayPayload, user: BootpayUser? = nil, items: [BootpayItem]? = nil, extra: BootpayExtra? = nil, smsPayload: SMSPayload? = nil, remoteForm: RemoteOrderForm? = nil, remotePre: RemoteOrderPre? = nil, addView: Bool? = false, _ gameObject: String = "", isModalButNoFullScreen: Bool? = false) {
145145

146146
if(!checkValid(payload: payload, user: user, items: items, extra: extra, smsPayload: smsPayload, remoteForm: remoteForm, remotePre: remotePre)) { return }
147147

148148
switch payload.ux {
149149
case UX.PG_DIALOG:
150-
request_dialog(viewController, sendable: sendable, payload: payload, user: user, items: items, extra: extra, smsPayload: smsPayload, addView: addView)
150+
request_dialog(viewController, sendable: sendable, payload: payload, user: user, items: items, extra: extra, smsPayload: smsPayload, addView: addView, isModalButNoFullScreen: isModalButNoFullScreen)
151151

152152
case UX.PG_SUBSCRIPT:
153-
request_dialog(viewController, sendable: sendable, payload: payload, user: user, items: items, extra: extra, smsPayload: smsPayload)
153+
request_dialog(viewController, sendable: sendable, payload: payload, user: user, items: items, extra: extra, smsPayload: smsPayload, isModalButNoFullScreen: isModalButNoFullScreen)
154154
// case UX.BOOTPAY_REMOTE_LINK:
155155
// request_link(payload, items: items, user: user, extra: extra, smsPayload: smsPayload)
156156
// case UX.BOOTPAY_REMOTE_FORM:
@@ -163,12 +163,14 @@ class BootpayDefault {
163163
}
164164

165165

166-
private static func request_dialog(_ viewController: UIViewController, sendable: BootpayRequestProtocol?, payload: BootpayPayload, user: BootpayUser? = nil, items: [BootpayItem]? = nil, extra: BootpayExtra? = nil, smsPayload: SMSPayload? = nil, addView: Bool? = false, ux: String? = nil) {
166+
private static func request_dialog(_ viewController: UIViewController, sendable: BootpayRequestProtocol?, payload: BootpayPayload, user: BootpayUser? = nil, items: [BootpayItem]? = nil, extra: BootpayExtra? = nil, smsPayload: SMSPayload? = nil, addView: Bool? = false, ux: String? = nil, isModalButNoFullScreen: Bool? = false) {
167167

168168
sharedInstance.vc = BootpayController()
169169

170170
sharedInstance.vc?.payload = payload
171171
if(payload.application_id.isEmpty) { sharedInstance.vc?.payload.application_id = sharedInstance.application_id }
172+
173+
if let isModalButNoFullScreen = isModalButNoFullScreen { sharedInstance.vc?.isModalButNoFullScreen = isModalButNoFullScreen }
172174

173175

174176
if let user = user { sharedInstance.vc?.user = user }

0 commit comments

Comments
 (0)