OPPCashAppPayProcessor
@interface OPPCashAppPayProcessor : NSObject
Class to process Cash App Pay Payments transaction.
-
Creates an object representing an Cash App Pay processor.
Declaration
Objective-C
- (nullable instancetype) initWithTransaction:(nonnull OPPTransaction *)transaction error:(NSError *_Nullable *_Nullable)error;
Swift
init(transaction: OPPTransaction) throws
Parameters
transaction
transaction to process, and it should not be nil.
error
The error that occurred while processing transaction. See code attribute (
OPPErrorCode
) andNSLocalizedDescription
to identify the reason of failure.Return Value
Returns an object representing an Cash App Pay processor.
-
Method to process Cash App Pay transaction.
Declaration
Objective-C
- (void)process:(nonnull CompletionBlock)completionBlock;
Swift
func process() async throws -> OPPTransaction