BTConfiguration

Objective-C

@interface BTConfiguration : NSObject

Swift

class BTConfiguration : NSObject

Contains information specific to a merchant’s Braintree integration

  • Used to initialize a BTConfiguration

    Declaration

    Objective-C

    - (nonnull instancetype)initWithJSON:(nonnull BTJSON *)json;

    Swift

    init(json: BTJSON)

    Parameters

    json

    The BTJSON to initialize with.

  • The merchant account’s configuration as a BTJSON object

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) BTJSON *_Nonnull json;

    Swift

    var json: BTJSON { get }
  • The environment (production or sandbox)

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *environment;

    Swift

    var environment: String? { get }

Undesignated initializers (do not use)

  • Unavailable

    Please use initWithJSON: instead.

    Base initializer - do not use.

    Declaration

    Objective-C

    - (nonnull instancetype)init;

ApplePay

  • Indicates whether Apple Pay is enabled for your merchant account.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isApplePayEnabled;

    Swift

    var isApplePayEnabled: Bool { get }
  • The Apple Pay payment networks supported by your Braintree merchant account.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<PKPaymentNetwork> *applePaySupportedNetworks;

    Swift

    var applePaySupportedNetworks: [PKPaymentNetwork]? { get }
  • Indicates if the Apple Pay merchant enabled payment networks are supported on this device.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL canMakeApplePayPayments;

    Swift

    var canMakeApplePayPayments: Bool { get }
  • The country code for your Braintree merchant account.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *applePayCountryCode;

    Swift

    var applePayCountryCode: String? { get }
  • The Apple Pay currency code supported by your Braintree merchant account.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *applePayCurrencyCode;

    Swift

    var applePayCurrencyCode: String? { get }
  • The Apple Pay merchant identifier associated with your Braintree merchant account.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *applePayMerchantIdentifier;

    Swift

    var applePayMerchantIdentifier: String? { get }

DataCollector

PayPal

  • Indicates whether PayPal is enabled for the merchant account.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isPayPalEnabled;

    Swift

    var isPayPalEnabled: Bool { get }
  • Indicates whether PayPal billing agreements are enabled for the merchant account.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isBillingAgreementsEnabled;

    Swift

    var isBillingAgreementsEnabled: Bool { get }

LocalPayment

  • Indicates whether Local Payments are enabled for the merchant account.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isLocalPaymentEnabled;

    Swift

    var isLocalPaymentEnabled: Bool { get }

ThreeDSecure

  • JWT for use with initializaing Cardinal 3DS framework

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSString *cardinalAuthenticationJWT;

    Swift

    var cardinalAuthenticationJWT: String! { get }

UnionPay

  • Deprecated

    The UnionPay SMS integration is deprecated, as UnionPay can now be processed as a credit card through their partnership with Discover. Use BTCardClient.tokenizeCard(card: completion:).

    Indicates whether UnionPay is enabled for the merchant account.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isUnionPayEnabled;

    Swift

    var isUnionPayEnabled: Bool { get }

Venmo

  • Indicates whether Venmo is enabled for the merchant account.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isVenmoEnabled;

    Swift

    var isVenmoEnabled: Bool { get }
  • Returns the Access Token used by the Venmo app to tokenize on behalf of the merchant.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSString *venmoAccessToken;

    Swift

    var venmoAccessToken: String! { get }
  • Returns the Venmo merchant ID used by the Venmo app to authorize payment.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSString *venmoMerchantID;

    Swift

    var venmoMerchantID: String! { get }
  • Returns the Venmo environment used to handle this payment.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSString *venmoEnvironment;

    Swift

    var venmoEnvironment: String! { get }
  • Indicates whether Enriched Customer Data (ECD) is enabled for the Venmo merchant.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isVenmoEnrichedCustomerDataEnabled;

    Swift

    var isVenmoEnrichedCustomerDataEnabled: Bool { get }