Skip to content

Commit

Permalink
fix public init (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon authored Jan 28, 2023
1 parent 81e9e52 commit 58ea4f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/StripeKit/Checkout/SessionRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public protocol SessionRoutes {
locale: StripeSessionLocale?,
metadata: [String: String]?,
mode: StripeSessionMode?,
invoiceCreation: StripeInvoiceCreation?,
invoiceCreation: Bool?,
paymentIntentData: [String: Any]?,
paymentMethodOptions: [String: Any]?,
phoneNumberCollection: Bool?,
Expand Down Expand Up @@ -108,7 +108,7 @@ extension SessionRoutes {
locale: StripeSessionLocale? = nil,
metadata: [String: String]? = nil,
mode: StripeSessionMode? = nil,
invoiceCreation: StripeInvoiceCreation? = nil,
invoiceCreation: Bool? = nil,
paymentIntentData: [String: Any]? = nil,
paymentMethodOptions: [String: Any]? = nil,
phoneNumberCollection: Bool? = nil,
Expand Down Expand Up @@ -187,7 +187,7 @@ public struct StripeSessionRoutes: SessionRoutes {
locale: StripeSessionLocale?,
metadata: [String: String]?,
mode: StripeSessionMode?,
invoiceCreation: StripeInvoiceCreation?,
invoiceCreation: Bool?,
paymentIntentData: [String: Any]?,
paymentMethodOptions: [String: Any]?,
phoneNumberCollection: Bool?,
Expand Down Expand Up @@ -247,7 +247,7 @@ public struct StripeSessionRoutes: SessionRoutes {
}

if let invoiceCreation = invoiceCreation {
body["invoice_creation"] = invoiceCreation
body["invoice_creation"] = StripeInvoiceCreation(enabled: invoiceCreation)
}

if let paymentIntentData = paymentIntentData {
Expand Down

0 comments on commit 58ea4f4

Please sign in to comment.