BTConfiguration
Objective-C
@interface BTConfiguration : NSObject
Swift
class BTConfiguration : NSObject
Contains information specific to a merchant’s Braintree integration
-
The environment (production or sandbox)
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *environment;
Swift
var environment: String? { get }
-
Unavailable
Please use initWithJSON: instead.
Base initializer - do not use.
Declaration
Objective-C
- (nonnull instancetype)init;
-
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 }
-
Deprecated
Kount Custom support will be removed in the next major version. Use
PPDataCollector.collectPayPalDeviceData()
.Indicates whether Kount is enabled for the merchant account.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isKountEnabled;
Swift
var isKountEnabled: Bool { get }
-
Deprecated
Kount Custom support will be removed in the next major version. Use
PPDataCollector.collectPayPalDeviceData()
.Returns the Kount merchant id set in the Gateway
Declaration
Objective-C
@property (nonatomic, readonly) NSString *kountMerchantID;
Swift
unowned(unsafe) var kountMerchantID: NSString! { get }
-
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 }
-
Indicates whether Local Payments are enabled for the merchant account.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isLocalPaymentEnabled;
Swift
var isLocalPaymentEnabled: Bool { get }
-
JWT for use with initializaing Cardinal 3DS framework
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *cardinalAuthenticationJWT;
Swift
var cardinalAuthenticationJWT: String! { get }
-
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 }
-
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 }