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
invoiceFull information of the invoice
urlPayment form URL
paymentsProviderContains information about the payment provider, if available, to support it natively without the need for opening the URL; may be null
savedOrderInfoSaved server-side order information; may be null
savedCredentialsContains information about saved card credentials; may be null
canSaveCredentialsTrue, if the user can choose to save credentials
needPasswordTrue, if the user will be able to save credentials protected by a password they set up
View on GitHub
Install in Dash
PaymentForm Structure Reference