OPPTokenPaymentParams
@objc
public final class OPPTokenPaymentParams : OPPBaseCardPaymentParams
Class to encapsulate all necessary transaction parameters for performing a token transaction.
-
The identifier of the token that can be used to reference the token later.
Declaration
Swift
@objc public private(set) var tokenID: String { get }
-
Creates an object representing a token transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public static func tokenPaymentParams(checkoutID: String, tokenID: String, paymentBrand: String?) throws -> OPPTokenPaymentParamsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.tokenIDThe identifier of the token that can be used to reference the token later.
paymentBrandPayment brand of the tokenized transaction.
Return Value
An object representing a token transaction, and
nilif parameters are invalid. -
Creates an object representing a token transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public static func tokenPaymentParams(checkoutID: String, tokenID: String, cardPaymentBrand: String?, cvv: String?) throws -> OPPTokenPaymentParamsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.tokenIDThe identifier of the token that can be used to reference the token later.
cardPaymentBrandThe payment brand of the tokenized card.
cvvThe cvv code found on the card.
Return Value
An object representing a token transaction, and
nilif parameters are invalid. -
Creates an object representing a token transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public init(checkoutID: String, tokenID: String, paymentBrand: String?) throwsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.tokenIDThe identifier of the token that can be used to reference the token later.
paymentBrandPayment brand of the tokenized transaction.
Return Value
An object representing a token transaction, and
nilif parameters are invalid. -
Creates an object representing a token transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public init(checkoutID: String, tokenID: String, cardPaymentBrand: String?, cvv: String?) throwsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.tokenIDThe identifier of the token that can be used to reference the token later.
cardPaymentBrandThe payment brand of the tokenized card.
cvvThe cvv code found on the card.
Return Value
An object representing a token transaction, and
nilif parameters are invalid.
-
Checks if the token identifier is valid to perform a transaction.
Declaration
Swift
@objc public static func isTokenIDValid(_ tokenID: String) -> BoolParameters
tokenIDThe identifier of the token that can be used to reference the token later.
Return Value
trueif token identifier is alpha-numeric string of length 32.
OPPTokenPaymentParams Class Reference