OPPSTCPayPaymentParams
@objc
public final class OPPSTCPayPaymentParams : OPPPaymentParams
Class to encapsulate all necessary transaction parameters for performing an STC Pay transaction.
-
Shopper’s mobile phone number.
Declaration
Swift
@objc public var phoneNumber: String?
-
Creates an object representing a STC Pay 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 stcPayPaymentParams(checkoutID: String, verificationOption: OPPSTCPayVerificationOption) throws -> SelfParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.verificationOptionThe verification option to proceed STC Pay transaction.
Return Value
Returns an object representing an STC Pay transaction.
-
Creates an object representing a STC Pay 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, verificationOption: OPPSTCPayVerificationOption) throwsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.verificationOptionThe verification option to proceed STC Pay transaction.
Return Value
Returns an object representing an STC Pay transaction.
-
Checks if the mobile phone is filled with sufficient data to perform a transaction.
Declaration
Swift
@objc public static func isMobilePhoneValid(_ mobilePhone: String) -> BoolParameters
mobilePhoneThe mobile phone number.
Return Value
Returns
trueif the mobile phone number contains digits only.
OPPSTCPayPaymentParams Class Reference