Converting from DPW to FlexWin

Only a few changes are needed in order to convert from DIBS Payment Window to FlexWin

URL

POST destination

The first step is to change the URL so that the form is posted to:

https://payment.architrade.com/paymentweb/start.action

Please refer to the integration checklist for form examples and thorough explanation of the steps you need to follow in order to complete the integration.

Parameters

Input and output parameters

Some parameter names and formats have to be changed. Please refer to the input parameters and output parametes to make sure that the correct parameters are used.

Note: To have FlexWin utilize our responsive design, you should use the 'decorator' parameter. Read more about the response design on the input parameters page.

Please contact DIBS support, if you have any questions.

Security

MD5 encoding

FlexWin uses MD5 rather than HMAC for protection against data tampering to and from the payment window. This requires that a new MD5 key is generated in the DIBS administration (under Integration -> MD5 key). For information about how to use MD5, please have a look at the MD5 parameter on the MD5 calculation page.

Callback

Encoding

All parameters in the callback are now sent in the ISO-8859-1 char-set instead of the UTF-8 char-set.

DPW Form

Here is an example of a DIBS Payment Window form. The differences that should be changed are highlighted.

<form type="button" method="post" action="https://sat1.dibspayment.com/dibspaymentwindow/entrypoint" accept-charset="utf-8">
	<input type="hidden" name="merchant" value="90089353" />
	<input type="hidden" name="acceptReturnUrl" value="http://payment.architrade.com/metaadmin/payreturn.pml"/>
	<input type="hidden" name="cancelReturnurl" value="http://payment.architrade.com/metaadmin/payreturn.pml">
	<input type="hidden" name="amount" value="4950"/>
	<input type="hidden" name="currency" value="208"/>
	<input type="hidden" name="language" value="da_DK"/>
	<input type="hidden" name="orderId" value="DIBSTEST"/>
	
 	<input type="hidden" name="oiTypes" value="QUANTITY;UNITCODE;DESCRIPTION;AMOUNT;ITEMID;VATAMOUNT" />
 	<input type="hidden" name="oiNames" value="Quantity;Unitcode;Description;Amount;ItemId;VatAmount" />
	<input type="hidden" name="oiRow1" value="1;pcs;Sportarmband fr iPhone 5/5S - Aktivators;4950;32;0" />
	
	<input type="hidden" name="MAC" value="75fbcbe6e68ad883501b8b5667247cc29661a4abb1ee0f9550ee15417f488d12" />
</form>
Do you have a question or need help?
Follow us
DIBS Payment Services
Stockholm +46 (0)8-527 525 00
Göteborg +46 031-600 800
København +45 7020 3077
Oslo +47 21 55 44 00