SavedBoncard
@objc(DTSavedBoncard)
@objcMembers
public class SavedBoncard : SavedPaymentMethod
This class contains saved Boncard payment method details.
Just like any other SavedPaymentMethod
subclass, this class can be used
to finalize a payment without user interaction or to display a selection of saved
payment methods to the user for fast checkouts.
A SavedBoncard
can be created by successfully completing a Boncard payment or
with a dedicated registration.
-
The specific subtype of card, which affects the title and logo that is displayed for the card.
Declaration
Swift
public let boncardType: BoncardType
-
The masked card number you can use to display that specific card in your app.
Declaration
Swift
public private(set) var maskedCardNumber: String? { get }
-
This init method has to be used to initialize a saved Boncard payment method.
Declaration
Swift
public init(alias: String, maskedCardNumber: String?, boncardType: BoncardType)
Parameters
alias
Alias for a Boncard
maskedCardNumber
The masked card number you can use to display that specific card in your app.
boncardType
The specific subtype of card, which affects the title and logo that is displayed for the card.