Examples
Consider the following call to FlexWin.
<FORM NAME="RedirForm" ACTION="https://payment.architrade.com/paymentweb/start.action" METHOD="POST" CHARSET="UTF-8"> <input type="hidden" name="merchant" value="90000001" /> <input type="hidden" name="amount" value="100" /> <input type="hidden" name="accepturl" value="https://www.yourSecurePage.com/accept.pml" /> <input type="hidden" name="orderid" value="12345678" /> <input type="hidden" name="currency" value="208" /> <input type="hidden" name="md5key" value="158a668ebc50d3c2fe1a393692a883f3" /> </FORM>
The MD5-keys for the calculations are:
k2 = -UbXVIo#n8~~1GO~vr;}XG_1{qu21Gc2
The calculations of the "md5key" value is as follows. First of all the string from the parameter values is created:
Next the first MD5 hash calculation is made:
innerMD5 = MD5('Gh0VOYNRW5?F%vCqt}BR~lPMrk4VT&o6merchant=90000001&orderid=12345678¤cy=208&amount=100')
innerMD5 = c3caca2a1b3029bde0449936e5078a04
The second MD5 hash calculation is now completed:
md5key = MD5('-UbXVIo#n8~~1GO~vr;}XG_1{qu21Gc2c3caca2a1b3029bde0449936e5078a04')
md5key = 158a668ebc50d3c2fe1a393692a883f3
Thus calculating the 'md5key' for a normal transaction through a hosted solution.
The following transaction call is made to FlexWin.
<FORM NAME="RedirForm" ACTION="https://payment.architrade.com/paymentweb/start.action" METHOD="POST" CHARSET="UTF-8"> <input type="hidden" name="merchant" value="90000001" /> <input type="hidden" name="amount" value="100" /> <input type="hidden" name="accepturl" value="https://www.yourSecurePage.com/accept.pml" /> <input type="hidden" name="orderid" value="12345678" /> <input type="hidden" name="currency" value="208" /> <input type="hidden" name="md5key" value="158a668ebc50d3c2fe1a393692a883f3" /> </FORM>
Consider the following response data.
The MD5 keys for the calculations are:
k2 = -UbXVIo#n8~~1GO~vr;}XG_1{qu21Gc2
The calculations of the "authkey" value is as follows. First the string from the parameter values is created:
Next the first MD5 hash calculation is made:
innerMD5 = MD5('Gh0VOYNRW5?F%vCqt}BR~lPMrk4VT&o6transact=760478797&amount=100¤cy=208')
innerMD5 = 236289e528d625e82cfd70bf0a5b707a
The second MD5 hash calculation is now completed:
authkey = MD5('-UbXVIo#n8~~1GO~vr;}XG_1{qu21Gc2236289e528d625e82cfd70bf0a5b707a')
authkey = 9635f527c1115d32ff1148214dd8a80f
Thus calculating the 'authkey' for a normal transaction through a hosted solution.
The following transaction call is made to FlexWin.
<FORM NAME="RedirForm" ACTION="https://payment.architrade.com/paymentweb/start.action" METHOD="POST" CHARSET="UTF-8"> <input type="hidden" name="merchant" value="90000001" /> <input type="hidden" name="amount" value="100" /> <input type="hidden" name="accepturl" value="https://www.yourSecurePage.com/accept.pml" /> <input type="hidden" name="orderid" value="12345678" /> <input type="hidden" name="currency" value="208" /> <input type="hidden" name="preauth" value="1" /> <input type="hidden" name="md5key" value="158a668ebc50d3c2fe1a393692a883f3" /> </FORM>
Consider the following response data.
The MD5 keys for the calculations are:
k2 = -UbXVIo#n8~~1GO~vr;}XG_1{qu21Gc2
The calculations of the "authkey" value is as follows. First the string from the parameter values is created:
Next the first MD5 hash calculation is made:
innerMD5 = MD5('Gh0VOYNRW5?F%vCqt}BR~lPMrk4VT&o6transact=760478797&preauth=true¤cy=208')
innerMD5 = ade2798bc8c6337e48b51224e9c5783c
The second MD5 hash calculation is now completed:
authkey = MD5('-UbXVIo#n8~~1GO~vr;}XG_1{qu21Gc2ade2798bc8c6337e48b51224e9c5783c')
authkey = 17c3092efdda67472bd75a11f5d25a30
Thus calculating the 'authkey' for a ticket transaction through a hosted solution.