PaymentComponentData
public struct PaymentComponentData
The data supplied by a payment component upon completion.
See also
API Reference-
The payment method details submitted by the payment component.
Declaration
Swift
public let paymentMethod: PaymentMethodDetails
-
Indicates whether the user has chosen to store the payment method.
Declaration
Swift
public let storePaymentMethod: Bool
-
The partial payment order if any.
Declaration
Swift
public let order: PartialPaymentOrder?
-
The payment amount.
Declaration
Swift
public let amount: Amount?
-
The installments object.
Declaration
Swift
public let installments: Installments?
-
Shopper name.
Declaration
Swift
public var shopperName: ShopperName? { get }
-
The email address.
Declaration
Swift
public var emailAddress: String? { get }
-
The telephone number.
Declaration
Swift
public var telephoneNumber: String? { get }
-
Indicates the device default browser info.
Declaration
Swift
public let browserInfo: BrowserInfo?
-
The billing address information.
Declaration
Swift
public var billingAddress: PostalAddress? { get }
-
The delivery address information.
Declaration
Swift
public var deliveryAddress: PostalAddress? { get }
-
The social security number.
Declaration
Swift
public var socialSecurityNumber: String? { get }
-
Creates a new
PaymentComponentData
by populating thebrowserInfo
, in case the browser info like the user-agent is needed, but its not needed for mobile payments.Declaration
Swift
public func dataByAddingBrowserInfo(completion: @escaping ((_ newData: PaymentComponentData) -> Void))
Parameters
completion
The completion closure that is called with the new
PaymentComponentData
instance.