BTLocalPaymentClient
@objcMembers
@MainActor
public class BTLocalPaymentClient : BTWebAuthenticationSessionClient
-
Initialize a new
BTLocalPaymentClientinstance.Declaration
Swift
@objc(initWithAuthorization:) @MainActor public init(authorization: String)Parameters
authorizationA valid client token or tokenization key used to authorize API calls.
-
Starts a payment flow using a
BTLocalPaymentRequestDeclaration
Swift
@MainActor public func start(_ request: BTLocalPaymentRequest, completion: @escaping (BTLocalPaymentResult?, Error?) -> Void)Parameters
requestA
BTLocalPaymentRequestrequest.completionThis completion will be invoked exactly once when the payment flow is complete or an error occurs.
-
start(_:Asynchronous) Starts a payment flow using a
BTLocalPaymentRequestThrows
AnErrordescribing the failureDeclaration
Swift
@MainActor public func start(_ request: BTLocalPaymentRequest) async throws -> BTLocalPaymentResultParameters
requestA
BTLocalPaymentRequestrequest.Return Value
A
BTLocalPaymentResultif successful
View on GitHub