Direct payment examples

Here you'll find a few examples related to making direct payment transactions.

<html>
   <head>
      <title>DebiTech direct payment: example - Page 1</title>
   </head>
   <body bgcolor="#ffffff" text="#000000">
      <h2>Direct payment</h2>
      <font face="Verdana, Geneva, Helvetica, Arial">
      <b>This is what you’ve ordered </b>
      ([ver date="dd/mm/yyyy HH:MM"])
      </font>
      <table border="1" cellspacing="0" cellpadding="2" bordercolor="#000000">
         <tr>
          <td bgcolor="#cccccc"><font face="Verdana, Geneva, Helvetica, Arial">
            Article number</font>
          </td>
          <td bgcolor="#cccccc"><font face="Verdana, Geneva, Helvetica, Arial">
            Description</font>
          </td>
          <td bgcolor="#cccccc"><font face="Verdana, Geneva, Helvetica, Arial">
            Number of items</font>
          </td>
          <td bgcolor="#cccccc"><font face="Verdana, Geneva, Helvetica, Arial">
            Price per item ([ver valueof="currency"])</font>
          </td>
          <td bgcolor="#cccccc"><font face="Verdana, Geneva, Helvetica, Arial">
            Sum ([ver valueof="currency"])</font>
          </td>
         </tr>
         [ver table start]
         <tr>
          <td align="right"><font face="Verdana, Geneva, Helvetica, Arial">
            [ver table art no]</font>
          </td>
          <td><font face="Verdana, Geneva, Helvetica, Arial">
            [ver table description]</font>
          </td>
          <td><font face="Verdana, Geneva, Helvetica, Arial">
            [ver table number]</font>
          </td>
          <td align="right"><font face="Verdana, Geneva, Helvetica, Arial">
            [ver table price]</font>
          </td>
          <td align="right"><font face="Verdana, Geneva, Helvetica, Arial">
            [ver table total price]</font>
          </td>
         </tr>
         [ver table end]
         [ver if shipment!=""]
         <tr>
          <td colspan="5">&#160;</td>
         </tr>
         <tr>
          <td colspan="4" align="right"><font face="Verdana, Geneva, Helvetica, Arial">
            Shipment</font>
          </td>
          <td align="right"><font face="Verdana, Geneva, Helvetica, Arial">
            [ver valueof="shipment"]</font>
          </td>
         </tr>
         [ver endif]
         <tr>
          <td colspan="5"></td>
         </tr>
         <tr>
          <td colspan="4"><font face="Verdana, Geneva, Helvetica, Arial">
            <b>Total</b></font>
          </td>
          <td align="right"><font face="Verdana, Geneva, Helvetica, Arial">
            <b>[ver valueof="currency"] [ver sum]</b></font>
          </td>
        </tr>
      </table>
      <p><font face="Verdana, Geneva, Helvetica, Arial">
         <b>Your information</b>
         </font>
      <table border="0" cellspacing="1" cellpadding="0">
        <tr>
         <td><font face="Verdana, Geneva, Helvetica, Arial">
           name</font>
         </td>
         <td rowspan="5"></td>
         <td><font face="Verdana, Geneva, Helvetica, Arial">
           [ver valueof="billingFirstName"] [ver valueof="billingLastName"]</font>
         </td>
        </tr>
        <tr>
         <td><font face="Verdana, Geneva, Helvetica, Arial">
           address</font>
         </td>
         <td><font face="Verdana, Geneva, Helvetica, Arial">
           [ver valueof="billingAddress"]</font>
         </td>
       </tr>
       <tr>
        <td><font face="Verdana, Geneva, Helvetica, Arial">
          city</font>
        </td>
        <td><font face="Verdana, Geneva, Helvetica, Arial">
          [ver valueof="billingCity"] [ver valueof="billingZipCode"]</font>
        </td>
       </tr>
       <tr>
        <td><font face="Verdana, Geneva, Helvetica, Arial">
          country</font>
        </td>
        <td><font face="Verdana, Geneva, Helvetica, Arial">
          [ver valueof="billingCountry"]</font>
        </td>
       </tr>
       <tr>
        <td><font face="Verdana, Geneva, Helvetica, Arial">
          e-mail address</font>
        </td>
        <td><font face="Verdana, Geneva, Helvetica, Arial">
          [ver valueof="eMail"]</font>
        </td>
       </tr>
    </table>
    <!-- The following MUST be a HTML Submit button, i.e. no picture button. -->
    <!-- You may not use the name attribute either. -->
    [ver formstart]
    [ver if method="direct.fsb"]
    <input type="submit"
       value="to the login page of F&ouml;reningssparbanken ">
    [ver endif]
    [ver if method="direct.nb"]
    <input type="submit"
      value="to the login page of Nordea">
    [ver endif]
    [ver if method="direct.seb.se"]
    <input type="submit"
       value=" to the login page of SEB Direktbetalning ">
    [ver endif]
    [ver if method="direct.shb"]
    <input type="submit"
      value=" to the login page of Handelsbanken ">
    [ver endif]
    [ver formend]
  </body>
</html>

To redirect the user to the bank without displaying any page on the DIBS server you can use the following code for page 1. Page 2 should be as the previous example.

<html>
  <head>
    <title>DebiTech direct payment: example - Page 1</title>
  </head>
  <body onload="document.forms[0].submit();">
   [ver formstart]
   [ver formend]
  </body>
</html>
<html>
  <head>
     <title>DebiTech test page, for YourShop</title>
  </head>
  <body>
     <form action="https://securedt.dibspayment.com/verify/bin/YourShop/index">
     data:
     <input type="text" name="data" value="001:Lollipop:2:75:">
     &#160;
     <input type="hidden" name="billingFirstName" value="Jane">
     <input type="hidden" name="billingLastName" value="Smith">
     <input type="hidden" name="eMail" value="jane@qwerty.co.uk">
     <input type="hidden" name="billingAddress" value="0, Street">
     <input type="hidden" name="billingZipCode" value="A00 99B">
     <input type="hidden" name="billingCity" value="Town">
     <input type="hidden" name="billingCountry" value="Country">
     <input type="hidden" name="currency" value="SEK">
     pageSet:
     <INPUT type="text" name="pageSet" value="direct">
     method:
     <INPUT type="text" name="method" value="direct.nb">
     &#160;
     <input type="reset" value="reset">
     <input type="submit" value="send">
     </form>
  </body>
</html>

The value of the method parameter depends on which bank the end user selects.
The value of the pageSet parameter is in this example set to “direct”. You need to create a direct page set based on the “Direct payment” template. The name you give this page set is the value you should set the pageSet value to.

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