/n software 3-D Secure V2 Python Edition

Questions / Feedback?

get_challenge_request Method

Builds the Challenge Request (CReq) for browser-based flow.

Syntax

def get_challenge_request() -> str: ...

Remarks

The on_get_challenge_request method is used to build the Challenge Request (CReq) which will be sent in a form post to the acsurl property via the cardholder browser.

An iframe should be created in the cardholder's browser, which will be used to send the challenge request and allow the cardholder and ACS to interact directly.

The size of the challenge window (iframe) may be any of the sizes listed in challenge_window_size. Before calling this method set challenge_window_size to the appropriate value to let the ACS know the size of the window on the cardholder's browser.

Calling this method will return a string which should be placed in a creq form variable.

The SessionData setting may also be set with any data that may be helpful to continue processing the transaction after the final challenge response is received at the notification_url. To prepare the session data for submission, query EncodedSessionData. The encoded string may then be placed in the threeDSSessionData form variable.

Note: The maximum length of the threeDSSessionData form variable, after being encoded, is 1024 bytes.

Example Form

Response Handling

Once the challenge has been completed by the cardholder, the directory server will post a Results Request (RReq) to the results_url specified when calling send_auth_request. See check_response and get_results_response for more details.

The ACS will also post the Challenge Response to the notification_url specified when calling send_auth_request. This post contains data which may be parsed to verify the challenge results. See check_response for more details.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
/n software 3-D Secure V2 Python Edition - Version 2.0 [Build 7722]