Jump to content
Sign in to follow this  
Swanfly

Suomi - Finland payment modules

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 <tuner@bdb.fi>
   // 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>

Share this post


Link to post
Share on other sites
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..

Share this post


Link to post
Share on other sites
Is this file still available somewhere? I would be interested..

 

I have it. Do you want me to mail it to you?

Share this post


Link to post
Share on other sites

I was unable to open the compressed file. Does anyone have the file or a link to where you could download it? I would be most grateful for the file.

Markus

Share this post


Link to post
Share on other sites

Could still highly appreciate if someone would be able to provide this!

 

*bump*

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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_

Share this post


Link to post
Share on other sites
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.

 

Mulle kans kiitos. I need it too.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×