Skip to content

Commit

Permalink
Release 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Kogan committed Apr 6, 2022
1 parent 9ef4d3e commit e9391bb
Show file tree
Hide file tree
Showing 49 changed files with 1,286 additions and 1,275 deletions.
2 changes: 1 addition & 1 deletion DolyameSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |s|
s.name = 'DolyameSDK'
s.summary = 'Dolyame SDK for iOS'

s.version = '1.0.3'
s.version = '1.0.4'

s.authors = {
'Isaac Weisberg' => '[email protected]',
Expand Down
4 changes: 2 additions & 2 deletions Example/DolyameSDKUsageDemo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0.3</string>
<string>1.0.4</string>
<key>CFBundleVersion</key>
<string>1170</string>
<string>1201</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class CheckoutCoordinator {

let partner = DolyamePaymentConfiguration.Partner(id: "bnpl-test-app",
notificationUrl: model.notificationUrl,
demoFlow: model.isDemoFlow)
demoFlow: model.isDemoFlow,
showErrorScreenDebugInformation: model.showErrorScreenDebugInformation)

let dolyamePaymentConfig = DolyamePaymentConfiguration(partner: partner,
order: orderData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class CheckoutPresenter {
let navigation = Navigation()

var model: CheckoutModel = CheckoutModel(isDemoFlow: false,
showErrorScreenDebugInformation: true,
notificationUrl: nil,
orderId: UUID().uuidString,
orderAmount: 4900,
Expand Down Expand Up @@ -52,6 +53,7 @@ class CheckoutPresenter {

private func createInputData(model: CheckoutModel) -> CheckoutInputData {
CheckoutInputData(isDemoFlow: model.isDemoFlow,
showErrorScreenDebugInformation: model.showErrorScreenDebugInformation,
notificationUrl: model.notificationUrl,
orderId: model.orderId,
orderAmount: model.orderAmount,
Expand All @@ -69,6 +71,7 @@ class CheckoutPresenter {
private func createModelWith(inputData: CheckoutInputData,
orderItems: [CheckoutItemModel]) -> CheckoutModel {
CheckoutModel(isDemoFlow: inputData.isDemoFlow,
showErrorScreenDebugInformation: inputData.showErrorScreenDebugInformation,
notificationUrl: inputData.notificationUrl,
orderId: inputData.orderId,
orderAmount: inputData.orderAmount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class CheckoutViewController: UIViewController {
let payWithDolyameButton = DolyamePaymentButton()

let demoFlowParamView = SwitchParameterView()
let showErrorScreenDebugInformationView = SwitchParameterView()

let notificationUrlParamView = ModifiableParameterView()

Expand Down Expand Up @@ -102,6 +103,7 @@ class CheckoutViewController: UIViewController {
let orderMcc = orderMcc,
let clientInfoId = clientInfoId {
let inputData = CheckoutInputData(isDemoFlow: demoFlowParamView.switcher.isOn,
showErrorScreenDebugInformation: showErrorScreenDebugInformationView.switcher.isOn,
notificationUrl: notificationUrl,
orderId: orderId,
orderAmount: orderAmount,
Expand Down Expand Up @@ -172,10 +174,15 @@ class CheckoutViewController: UIViewController {
let flowLabel = UILabel()
flowLabel.text = "Flow"
stackView.addArrangedSubview(flowLabel)

stackView.addArrangedSubview(demoFlowParamView)
demoFlowParamView.label.text = "Demo flow"
demoFlowParamView.switcher.setOn(false, animated: false)

stackView.addArrangedSubview(showErrorScreenDebugInformationView)
showErrorScreenDebugInformationView.label.text = "Error Screen Debug Messages"
showErrorScreenDebugInformationView.switcher.setOn(true, animated: false)

let partnerLabel = UILabel()
partnerLabel.text = "Partner"
stackView.addArrangedSubview(partnerLabel)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Foundation

struct CheckoutInputData {
let isDemoFlow: Bool
let showErrorScreenDebugInformation: Bool

let notificationUrl: String?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Foundation

struct CheckoutModel {
let isDemoFlow: Bool
let showErrorScreenDebugInformation: Bool

let notificationUrl: String?

Expand Down
Loading

0 comments on commit e9391bb

Please sign in to comment.