Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Payment module without code changes in oscommerce 2.3


Martin1

Recommended Posts

Posted

I'm having a problem that really puzzles me.

 

Is it possible to have a module for oscommerce 2.3 that requires no code changes at all in oscommerce? More precisely a payment gateway that only consist of 5 new php files and nothing else.

 

The reason I ask is that I wish to upgrade my payment gateway to a newer version, however the supplier says that it's the complete module even though I insisted it's not.

One of the reasons I believe it is not, is that for both the 2.2 version and the 3.x version there's a lot more in the package including images, php and xml files.

 

If anyone wants to have a look at the packages, then both the one for 2.3 that I require, the one for 2.2 and 3.x versions an be found here:

http://tech.epay.dk/da/download/oscommerce

 

I really tried convincing them that the 2.3 package is broken, but they keep insisting that it's the complete module and they actually said they can't help me further.

Am I just being stupid here?

 

Best regards

Martin

Posted

Yes, most payment modules require no code changes in oscommerce and can simply be uploaded via ftp followed by activating and configuring the module in admin.

Posted

Hi there

 

the simplest payment module needs two files

 

includes/modules/payment/the_module.php

&

includes/modules/your_language/the_module.php

 

Extra files get added in for various reasons so five is OK

 

The 2.3.x version that you link to works just fine in a 2.3.3.2 vanilla install but fails for me at checkout as I don't have a test or user account (see screenshot) however it does show that the module is 'talking' with the bank server

 

Looking at the code it may also work with a 2.2 provided you import jQuery - so chances are that they have developed 'something new' for the 2.3 version which has jQuery?

Posted

But what about all the pictures that are not included then. In both the older and newer version a lot more code files as well as an image folder is included. Is it likely that they get all these pictures externally from their server? And why not in the other versions.

Their installation guide talks about changes in the oscommerce files. This contributes to my confusion.

Posted

Hi Martin

 

I think that the install guide is maybe misleading a little?

 

If you use this one http://www.oscommerceguiden.dk/en/installation just ignore any mention of changing files if you are using their 2.3.x_1.1 download as there are no core osC files in that zip

 

If you are trying to implement that version in a 2.2 osC store then you'll need to add in jQuery or else edit the module at the function process_button() function to use some other method of forcing the popup

Posted

@@Bob Terveuren and @@toyicebear

Thanks a lot for your help.

 

I got it working now except for a detail, it skips the last step (3. reciept).

 

The payment is processed though.

 

 

It's on oscommerce 2.3.3. The cause could be that I still have leftovers from the old epay module.

Posted

Perhaps I was just confused before. It does not skip the reciept step.

However after it is finished and the epay window closes it simply redirects back to an empty shoppingcart. It also doesn't send out the order confirmation mail to the customer. This is also the case for the bank transfer module on our site now.

I'm pretty sure I deleted the old epay code that they told me to delete.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...