BoncardConfig

@objc(DTBoncardConfig)
public class BoncardConfig : NSObject, NSCopying

Configuration object for Boncard transactions.

  • Creates a new Boncard configuration object.

    Declaration

    Swift

    public init(boncardTypes: [BoncardType])

    Parameters

    boncardTypes

    The types of Boncard (and their order) to display in the payment method selection for the PaymentMethodType.Boncard payment method type.

  • Creates a new Boncard configuration object.

    This initializer is for use from Objective-C only. Instead of [BoncardType], it takes [NSNumber] containing rawValues of BoncardType.

    Example: [[DTBoncardConfig alloc] initWithBoncardTypes:@[@(DTBoncardTypeGiftCard), @(DTBoncardTypeBoncard)]];

    Declaration

    Swift

    @objc(initWithBoncardTypes:)
    public convenience init(boncardTypesObjc: [NSNumber])

    Parameters

    boncardTypesObjc

    The types of Boncard (and their order) to display in the payment method selection for the PaymentMethodType.Boncard payment method type.