Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Suomi - Finland payment modules


Swanfly

Recommended Posts

Hi.

 

I want payment module to finnish banks (nordea, sampo, s??st?pankki, Osuuspankki). And i didnt find any from contributions section. So i ask, is it hard to make it by myself ?

 

*edit* - English only

 

So any suggestions, advices, instructions are wellcome =) B)

 

Thanks for advance

swanfly

Edited by Johnson
Link to comment
Share on other sites

  • 9 months later...
I want payment module to finnish banks (nordea, sampo, s??st?pankki, Osuuspankki). And i didnt find any from contributions section. So i ask, is it hard to make it by myself ?

So any suggestions, advices, instructions are wellcome =)  B)

 

I have exactly the same question! I would be very happy, if we could get any answers, although I can see that Swanfly's question is very old and haven't got any answers, so I'm not very hopeful.

 

So many Finnish shops use osCommerce that you'd think there must be some one that knows ;) ... Please help :blush: !

 

Thank you in advance!

Jenna

Link to comment
Share on other sites

  • 3 weeks later...

Here you go.. nordea solo, okopankki and sampo. Probaply contains shitloads of bugs (never have I worked with php before :)

 

finnish_banks.tar.gz

 

edit: I think all other banks should be very easy to make too.. I just didn't need them.

Edited by PellePeloton
Link to comment
Share on other sites

  • 1 month later...

Hi,

 

Has anybody created finnish pre-payment module? The above mentioned online-payment methods do have high intial cost and thus too expensive for small-scale businesses like ours.

 

I am looking for a solution where the customer would pay the order in advance and would be provided with account number and reference number. This could be viewed online and emailed to the customer. Arrival of money will be checked manually and goods will be shipped as the payment is received on the account.

 

Main issue here is calculation of the bank reference number.

Link to comment
Share on other sites

  • 5 weeks later...

I found more on this issue from usenet:

http://groups-beta.google.com/groups?q=viitenumero+php

specially thread:

http://groups-beta.google.com/group/sfnet....b6ebaee4d931352

 

The above mentioned URL has already expired, but the wayback machine at web.archive.org had archived the page. Here is the source for calculating bank reference number (viitenumero) in PHP (credits for Kari Lavikka). If you manage to tweak this into pre-payment module, please share your code here!

 

<?php
function viiteTarkistusNumero($sViite) {

   // (c) Kari Lavikka <[email protected]>
   // Ruutiinia saa vapaasti k?ytt?? ja kopioida kunhan t?m?
   // kommentti s?ilytet??n funktion m??rittelyss?.

   $iKerroin = 7;
   $iSumma = 0;

   if (strlen($sViite) > 19) {
       return "Viitenumero on liian pitk?! Maksimipituus on 19 + 1 merkki?.";
   } else if (strlen($sViite) == 0) {
       return "";
   }

   if (!is_numeric($sViite)) {
       return "Viitenumerossa on virheellisi? merkkej?!";
   }

   for ($iLaskuri = strlen($sViite); $iLaskuri > 0; $iLaskuri--) {
       $iSumma += substr($sViite, $iLaskuri - 1, 1) * $iKerroin;
       switch ($iKerroin) {
       case 7:
           $iKerroin = 3;
           break;
       case 3:
           $iKerroin = 1;
           break;
       case 1:
           $iKerroin = 7;
           break;
       }
   }

   $iSumma = substr(10 - ($iSumma % 10), -1);
   settype($iSumma, "integer");
   return $iSumma;
}

?>

<html>
   <head>
       <title>
           Viitenumeron tarkistusnumerogeneraattori 
       </title>
       <meta name="keywords" content="viitenumero, tarkistusnumero, rutiini, php, l?hdekoodi" />
       <style type="text/css">BODY { margin: 1cm; font-family: sans-serif; }</style>
   </head>
   <body>
   <h1>Viitenumeron tarkistusnumerogeneraattori</h1>

   <form action="viitenumero.php" method="get">
       <p>Kirjoita alla olevaan kentt??n viitenumeron alkuosa. Painettuasi "Laske!" nappulaa, tarkistusnumerolla varustettu viitenumero ilmestyy tekstikent?n alapuolelle.</p>
       <p>
           <input type="text" name="viite">
           <input type="submit" value="laske!">
       </p><p>
<?php
   $numero = viiteTarkistusNumero($HTTP_GET_VARS["viite"]);
   if (is_numeric($numero)) {
       echo $HTTP_GET_VARS["viite"]."<strong>" . $numero . "</strong>";
   } else {
       echo "<i>" . $numero . "</i>";
   }
?>
       </p>
   </form>
   <hr />
   <p>© <a href="/~tuner/">Kari Lavikka</a> -
   Tiedoston php l?hdekoodi: <a href="viitenumero.phps">viitenumero.phps</a> - 
   Vastaava funktio Visual Basic muodossa: <a href="viitenumero.bas">viitenumero.bas</a></p>

   </body>
</html>

Link to comment
Share on other sites

  • 7 months later...
Here you go.. nordea solo, okopankki and sampo. Probaply contains shitloads of bugs (never have I worked with php before :)

 

finnish_banks.tar.gz

 

edit: I think all other banks should be very easy to make too.. I just didn't need them.

 

Is this file still available somewhere? I would be interested..

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

So what you mean when you talk about Finnish banking modules. Are you talking about prepayment (ennakkomaksu) or onlinebanking like Solo, Sampo etc.

 

Anyway does some know at what stage system generates orderid. Is it generated after you make final order submitting or at earlier stage. If we are talking about premayment this informationg is important when we are thinking about making a reference number (viitenumero).2

Link to comment
Share on other sites

  • 2 months later...
Here you go.. nordea solo, okopankki and sampo. Probaply contains shitloads of bugs (never have I worked with php before

 

finnish_banks.tar.gz

 

edit: I think all other banks should be very easy to make too.. I just didn't need them.

 

I cannot find this file anymore, not even from the zen-site.

If someone has this file, is it possible to post it here or by email?

Thanks.

Edited by kimmo_
Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

This is an old thread but I'll reply anyway :P

I believe these can be modified back to their original oscommerce form? Zen Cart Payment Gateways

I dont have enough experience with oscommerce so I wont even try to mess it up, but surely there is someone capable of doing it without breaking things? If someone kindly makes them compatible with osc, kindly make them available to all :)

 

///Greaver

Link to comment
Share on other sites

  • 10 months later...
  • 1 year later...
  • 2 months later...

Some one has asked this before but has anyone made bank transfer payment module with reference number (viitenumero), for example order numer + checksum number (tarkistenumero). If in this step order number is not possible to use, is it possible to use previous order number + 1.

 

Now I have the same reference number in every order.

Link to comment
Share on other sites

  • 4 months later...

I created Viitenumero_Finland v.1.0 and it's avaible here http://addons.oscommerce.com/info/6953

 

It's a very simple working example on how the reference number can be created (pre-payment module). Further editing would be greatly appreciated as I suck in php!

 

It just creates 5 random numbers and a tarkistenumero instead of the normal order number.

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...