BTPaymentMethodNonce
@objcMembers
open class BTPaymentMethodNonce : NSObject
BTPaymentMethodNonce is for generic tokenized payment information.
For example, if a customer’s vaulted payment methods contains a type that’s not recognized or supported by the Braintree SDK or the client-side integration (e.g. the vault contains a PayPal account but the client-side integration does not include the PayPal component), this type can act as a fallback.
The payment method nonce is a public token that acts as a placeholder for sensitive payments data that has been uploaded to Braintree for subsequent processing. The nonce is safe to access on the client and can be used on your server to reference the data in Braintree operations, such as Transaction.sale.
-
The payment method nonce.
Declaration
Swift
public var nonce: String
-
The string identifying the type of the payment method.
Declaration
Swift
public var type: String
-
The boolean indicating whether this is a default payment method.
Declaration
Swift
public var isDefault: Bool
-
Initialize a new Payment Method Nonce.
Declaration
Swift
@objc(initWithNonce:) public init(nonce: String)
Parameters
nonce
A transact-able payment method nonce.
Return Value
A Payment Method Nonce, or
nil
if nonce is nil. -
Initialize a new Payment Method Nonce.
Declaration
Swift
@objc(initWithNonce:type:) public init(nonce: String, type: String)
Parameters
nonce
A transact-able payment method nonce.
type
A string identifying the type of the payment method.
Return Value
A Payment Method Nonce, or
nil
if nonce is nil. -
Initialize a new Payment Method Nonce.
Declaration
Swift
@objc(initWithNonce:type:isDefault:) public init(nonce: String, type: String, isDefault: Bool)
Parameters
nonce
A transact-able payment method nonce.
type
A string identifying the type of the payment method.
isDefault
A boolean indicating whether this is a default payment method.
Return Value
A Payment Method Nonce, or
nil
if nonce is nil.