OPPThreeDSTransaction
@objc
public class OPPThreeDSTransaction : NSObject
Class that contains information required for performing concrete 3-D Secure transaction for both frictionless and challenge flow.
Use OPPThreeDSService.createTransaction(paymentBrand:protocolVersion:)
to create a new transaction instance.
-
Constructs authentication request parameters string to be sent to the Platform.
Throws
SDKRuntimeException
if some internal error occurred
Declaration
Swift
@objc public func getAuthRequestParams() throws -> String
Return Value
Returns a string with authentication request parameters to be sent to the Platform.
-
Validates
authResponse
and launches the challenge screens.Throws
Throws:
InvalidInputException
if invalid auth response is provided.SDKRuntimeException
if some internal error occurred.
Declaration
Swift
@objc public func doChallenge(authResponse : String, navigationController: UINavigationController, challengeCallback: OPPThreeDSChallengeCallback) throws
Parameters
authResponse
The json string with authentication response as received from the Platform.
navigationController
The navigation controller to start challenge
challengeCallback
The instance of
OPPThreeDSChallengeCallback
that is calling protocol method. -
Returns the processing screen which displays the Directory Server logo, and a graphical element to indicate that an activity is being processed.
Throws
SDKRuntimeException
if some internal error occurred
Declaration
Swift
@objc public func getProgressView() throws -> ProgressView
Return Value
ProgressView
object to be shown while transaction is processing. -
Cleans up resources that are held by the transaction object.
Note
This method is required to be called only when thedoChallenge(authResponse:navigationController:challengeCallback:)
method is not called in the transaction. E.g. you want to cancel transaction instead of requesting challenge authentication.Throws
SDKRuntimeException
if some internal error occurred
Declaration
Swift
@objc public func close() throws