PaymentForm
public struct PaymentForm : Codable, Equatable, FunctionResult
Contains information about an invoice payment form
-
Full information of the invoice
Declaration
Swift
public let invoice: Invoice
-
Payment form URL
Declaration
Swift
public let url: String
-
Contains information about the payment provider, if available, to support it natively without the need for opening the URL; may be null
Declaration
Swift
public let paymentsProvider: PaymentsProviderStripe?
-
Saved server-side order information; may be null
Declaration
Swift
public let savedOrderInfo: OrderInfo?
-
Contains information about saved card credentials; may be null
Declaration
Swift
public let savedCredentials: SavedCredentials?
-
True, if the user can choose to save credentials
Declaration
Swift
public let canSaveCredentials: Bool
-
True, if the user will be able to save credentials protected by a password they set up
Declaration
Swift
public let needPassword: Bool
-
Contains information about an invoice payment form
Declaration
Swift
public init(invoice: Invoice, url: String, paymentsProvider: PaymentsProviderStripe?, savedOrderInfo: OrderInfo?, savedCredentials: SavedCredentials?, canSaveCredentials: Bool, needPassword: Bool)
Parameters
invoice
Full information of the invoice
url
Payment form URL
paymentsProvider
Contains information about the payment provider, if available, to support it natively without the need for opening the URL; may be null
savedOrderInfo
Saved server-side order information; may be null
savedCredentials
Contains information about saved card credentials; may be null
canSaveCredentials
True, if the user can choose to save credentials
needPassword
True, if the user will be able to save credentials protected by a password they set up