Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting started developing module of payment.


Recommended Posts

Posted

Hello, I am developing I module of payment. I arrive at the function selection() within the class and all good, but I do not know how follow, not as it is the logical order of the functions nor so that serve the others absolutely, I imagine that it must have an example of I modulate of explanatory payment BUT I do not know WHERE. Somebody of the forum knows where to find this information?

 

Thanks

  • 1 month later...
Posted

I have painfully been where you are - I will share with you what I have learnt - hopefully others will also find this post useful.

 

Here's an overview of the checkout process and call to payment module's functions (sequentally):

 

(calling script : module function : description)

 

1. checkout_payment.php : javascript_validation() : generates client side js code for input validation

 

2. checkout_payment.php : selection() : Renders input fields and/or text fields

 

3. checkout_confirmation.php : pre_confirmation() : Any verification required before outputting payment summary

 

4. checkout_conformation.php : confirmation() : Any verification required before outputting form post data

 

5. checkout_confirmation.php : process_button() : outputs module's form post data

 

6. checkout_process.php : before_process() : Any action, e.g payment verification before order is completed

 

7. checkout_process.php : after_process() : Any action, e.g db inserts/updates after order is completed

 

 

This what i can remember on the fly - please forgive me if anything is incorrect...!

 

There is a bit more complexity that I could add, but it would only add confusion in this post. My tip would be to look at the osCommerce team's PayPal contribution. Make particular note of how they included most of the code to checkout_process.php in the modules before_process() function (because the order object is created after the payment module object - chicken&egg problem...).

 

Hope this helps - this information has been aqcuired through close scrutiny of the process + trial and failure while developing osc payment modules for LUUP (www.luup.com). There is certainly a lack of team/community documentation - I might write a proper payment module development guide one day if I find the time...

 

Eskil

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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