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) throwsParameters
transactiontransaction to process, and it should not be nil.
errorThe error that occurred while processing transaction. See code attribute (
OPPErrorCode) andNSLocalizedDescriptionto 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
OPPCashAppPayProcessor Class Reference