3d Secure and Realex payment gateway integration steps

Step1
————–

create sha1hash = timestamp.merchantid.orderid.total.currencycode.cardnumber

sha1hash is passed with relevant data to the xml template ”

Checking: scripts check if response has “00” in the result tag.

Response: if successful “00” , then response xml will have

XID
pareq
URL
SHA1HASH
ORDERID

Step2
———–
Prepare ACS FORM post , in aoki case
return url is AOKI URL = https://aokiinteriors.ie/checkout.php?asc_action=ConfirmOrder&process=3dsecure
and the form is

form action=”URL” method=”POST”
input name=”PaReq” type=”hidden” value=”pareq””
input name=”TermUrl” type=”hidden” value=”AOKI URL”
input name=”MD” type=”hidden” value=”MD”

Processing: while redirecting to above url we show a message “Redirecting to 3D Secure ACS server.. Please don’t press Back or Refresh button.”.

3d secure gateway shows a window with text “Send Pares to TermURL” with textarea that has request variables and a submit button . In your documentation it is mentioned that when account is made live this page will be replaced with a password box.

Response: Once processed , lands to the AOKI URL provided above.

Step 3:
———————

Response XML from ACS server

we get:

PARES
AZSESSID
MD

CURL post request xml is created.

sha1hash = timestamp.merchantid.orderid.total.currencycode.cardnumber

sha1hash is passed with relevant data to the xml template “request type=3ds-verifysig” as CURL POST to the url https://epage.payandshop.com/epage-3dsecure.cgi.

Checking: scripts check if response has “00” in the result tag.

if result is 00 then response tag will have threedsecure tag that is parsed to collect.

Response:
CAVV
XID
ECI
STATUS
algorithm

Step 4:
———————-

LAST step of the 3d secure processing to check payment authorization.

CURL post request xml is created.

sha1hash = timestamp.merchantid.orderid.total.currencycode.cardnumber

sha1hash is passed with relevant data to the xml template “request type=auth” as CURL POST to the url https://epage.payandshop.com/epage-remote.cgi.

CURL POST to the url https://epage.payandshop.com/epage-remote.cgi..

Checking: scripts check if response has “00” in the result tag.

if result is 00 then payment transaction is succesfull and order details will appear in Realex payment gateway control panel.