Jump to content
Rizado

Development of own module

Recommended Posts

Now I need to create my own payment module for linking osCommerce with our own payment server.

Mostly it's ready, but there is a problem. How server must return result of payment?

Is there documentation on the development of payment modules?

 

Thanks.

Share this post


Link to post
Share on other sites

No general documentation but lots of examples - did you manage ok?

 

The payment modules that come with osc have the return processing under

catalog/ext/modules/payment

 

Have a look there for inspiration.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (2.3.4.1 CE) here: https://github.com/gburton/Responsive-osCommerce/archive/2341-Frozen.zip

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

@@Rizado

There are two steps

First in checkout_process.php (payment module self comunication chanel)
 

// load the after_process function from the payment modules
  $payment_modules->after_process();

Second is a callback link from the payment server. Its mostly should be in  //yourshop/ext/modules/payment/[yourpaymentmodulesdir]/return.php file

In this file you could recive payment server responses.

A lot of payment modules use own logic response handling methods.

Edited by Gergely

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

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

×