OPPCashAppPayPaymentParams
@objc
final public class OPPCashAppPayPaymentParams : OPPPaymentParams, NSCopying
Class to encapsulate all necessary transaction parameters for performing Cash App Pay Payments transaction.
-
Cash App Pay configuration object.
Declaration
Swift
@objc public var cashAppPayBrandConfig: OPPCashAppPayBrandConfig
-
Creates an object representing an Cash App Pay transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode
) andNSLocalizedDescription
to identify the reason of failure.Declaration
Swift
@objc public static func cashAppPayPaymentParams(checkoutID: String, configuration: OPPCashAppPayBrandConfig) throws -> Self
Parameters
checkoutID
The checkout ID of the transaction. Must be not
nil
or empty.configuration
Cash App Pay brand configuration.
Return Value
Returns an object representing an Cash App Pay transaction.
-
Creates an object representing an Cash App Pay transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode
) andNSLocalizedDescription
to identify the reason of failure.Declaration
Swift
@objc public init(checkoutID: String, configuration: OPPCashAppPayBrandConfig) throws
Parameters
checkoutID
The checkout ID of the transaction. Must be not
nil
or empty.configuration
Cash App Pay brand configuration.
Return Value
Returns an object representing an Cash App Pay transaction.