BTCardClient

@objc
public class BTCardClient : NSObject

Used to process cards

Initializer

Public Methods

  • Tokenizes a card

    Declaration

    Swift

    @objc(tokenizeCard:completion:)
    public func tokenize(_ card: BTCard, completion: @escaping (BTCardNonce?, Error?) -> Void)

    Parameters

    card

    The card to tokenize.

    completion

    A completion block that is invoked when card tokenization has completed. If tokenization succeeds, tokenize will contain a nonce and error will be nil; if it fails, tokenize will be nil and errorwill describe the failure.

  • tokenize(_:) Asynchronous

    Tokenizes a card

    Throws

    An Error describing the failure

    Declaration

    Swift

    public func tokenize(_ card: BTCard) async throws -> BTCardNonce

    Parameters

    card

    The card to tokenize.

    Return Value

    On success, you will receive an instance of BTCardNonce