BTSEPADirectDebitClient

@objc
public class BTSEPADirectDebitClient : BTWebAuthenticationSessionClient

Used to integrate with SEPA Direct Debit.

Initializers

Public Methods

  • Initiates an ASWebAuthenticationSession to display a mandate to the user. Upon successful mandate creation, tokenizes the payment method and returns a result

    Declaration

    Swift

    @objc(tokenizeWithSEPADirectDebitRequest:completion:)
    public func tokenize(
        _ request: BTSEPADirectDebitRequest,
        completion: @escaping (BTSEPADirectDebitNonce?, Error?) -> Void
    )

    Parameters

    request

    a BTSEPADebitRequest

    completion

    This completion will be invoked exactly once when tokenization is complete or an error occurs

  • tokenize(_:) Asynchronous

    Initiates an ASWebAuthenticationSession to display a mandate to the user. Upon successful mandate creation, tokenizes the payment method and returns a result

    Throws

    An Error describing the failure

    Declaration

    Swift

    public func tokenize(_ request: BTSEPADirectDebitRequest) async throws -> BTSEPADirectDebitNonce

    Parameters

    request

    a BTSEPADebitRequest

    Return Value

    A BTSEPADirectDebitNonce if successful