OPPCashAppPayPaymentParams
@interface OPPCashAppPayPaymentParams : OPPPaymentParams
Class to encapsulate all necessary transaction parameters for performing Cash App Pay Payments transaction.
-
Undocumented
Declaration
Objective-C
@property (nonatomic, nonnull) OPPCashAppPayBrandConfig *cashAppPayBrandConfig
Swift
var cashAppPayBrandConfig: OPPCashAppPayBrandConfig { get set }
-
Creates an object representing an Cash App Pay transaction.
Declaration
Objective-C
+ (nullable instancetype) cashAppPayPaymentParamsWithCheckoutID:(nonnull NSString *)checkoutID configuration:(nonnull OPPCashAppPayBrandConfig *) cashAppPayBrandConfig error:(NSError *_Nullable *_Nullable)error;
Swift
convenience init(checkoutID: String, configuration cashAppPayBrandConfig: OPPCashAppPayBrandConfig) throws
Parameters
checkoutID
The checkout ID of the transaction. Must be not
nil
or empty.configuration
Set Cash App Pay brand configuration.
error
The error that occurred while validating payment parameters. See code attribute (
OPPErrorCode
) andNSLocalizedDescription
to identify the reason of failure.Return Value
Returns an object representing an Cash App Pay transaction.