Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Writing a module


Recommended Posts

Hi I need to write a payment module.

I tried to look but couldn't find any documentation which explains how this is doen

(even not which info should be added to the db )

I was wondering if there is any documention , or some one can point me to the right

pages where the functions and classes are (started looking around myself , but its just to exahsting

to try to figure out whats going on this way).




Link to comment
Share on other sites

No documentation that I know of. Just start by looking at a simple payment module, like cod.php, then check out what some of the more complicated ones, like authorize.net do. The payment modules have a fairly easy structure:


before_process() happens in checkout_process.php before the order is created.

after_process() happens in checkout_process.php after the order is created

javascript_validation() returns the javascript used to validate any form fields on checkout_payment.php for that module,





Discount Coupon Codes


Link to comment
Share on other sites

Join the conversation

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

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...