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) and NSLocalizedDescription to identify the reason of failure.

    Declaration

    Swift

    @objc
    public init(transaction: OPPTransaction) throws

    Parameters

    transaction

    Transaction 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

    completionBlock

    Completion 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) and NSLocalizedDescription to identify the reason of failure.

    Declaration

    Swift

    public func process() async throws -> OPPTransaction

    Return Value

    The processed transaction.