OPPCashAppPayProcessor
@objc
public class OPPCashAppPayProcessor : NSObject
Class to process Cash App Pay Payments transaction.
-
Creates an object representing a Cash App Pay processor.
Throws
The error that occurred while processing transaction. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public init(transaction: OPPTransaction) throwsParameters
transactionTransaction to process, and it should not be nil.
Return Value
Returns an object representing a Cash App Pay processor.
-
Method to process Cash App Pay transaction.
Declaration
Swift
@objc public func process(_ completionBlock: @escaping CompletionBlock)Parameters
completionBlockCompletion block to handle transaction or error.
-
Method to process Cash App Pay transaction.
Throws
The error that occurred while processing transaction. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
public func process() async throws -> OPPTransactionReturn Value
The processed transaction.
OPPCashAppPayProcessor Class Reference