DIBS Card Payment

Aug 25, 2009 at 1:39 PM


I want to make a card payment solution for the scandinavian payment gateway DIBS.

The solution is rather simple, when completing an order the checkout is done with ssl-cryptation and when  selecting card payment a form should be displayed that has all information for completing payment. This is the (simplified) format I have used on another site I made a few years ago:

<FORM name="payform" action="https://payment.architrade.com/cgi-ssl/3dsecure.cgi" method=POST autocomplete="off">
    <input type="hidden" name="merchant" Value="merchantid">
    <input type="hidden" name="amount" Value="12500">
    <input type="hidden" name="currency" Value="752">
    <input type="hidden" name="orderid" Value="3496">
    <input type="text" name="cardno" Value="">
    <input type="text" name="cvc" Value="">
Expiration month
    <select name="expmon">
        <option value="01">01</option><option value="02">02</option> etc..
Expiration Year:
    <select name="expyear">
        <option value="09">2009</option><option value="10">2010</option> etc...

    <input type="hidden" name="accepturl" value="https://www.mysite.se/sendorder">
    <input type="hidden" name="cancelurl" value="https://www.mysite.se/cancelled">
    <input type="hidden" name="declineurl" value="https://www.mysite.se/declined">

No server-side cgi is needed and in the response to the accepturl the orderid is sent back as well as transaction id.

In all your payment solution the form is either automatically submitted to payment gateway and additional information (card no) is entered on the other end, or the html is generatid via cgi-solution.

Do you have any solution where I can just use a form (as above) so that the user can enter card information in the next step while still on my own server?

Best regards,


Aug 25, 2009 at 10:18 PM

Hi Arvid,

I see what your trying to do, unfortunatly I don't have any code that could help you.  The first approach that comes to my mind is to create a bespoke payment provder to do this by making the "GetButtonHtml" function return the html needed to display the form and inputs.   You'll have to strip the <form> bit so the html fits into the DNN structure OK, but I think it should work.  But you may have a lot of work to do in order to make sure it integrates with the store OK.

Sorry I can't be of more help,