Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Writing a Payment Module


d0mokun

Recommended Posts

I would suggest starting with either a very simple payment module (such as the check/money order module) or something that is similar to what you're trying to do. If you're building a module to connect with a new payment processor, for example, you could start with the authorize.net module. Starting with an existing module shows you the framework that you need to have and should give you an idea of what all of the functions do.

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Link to comment
Share on other sites

I would suggest starting with either a very simple payment module (such as the check/money order module) or something that is similar to what you're trying to do. If you're building a module to connect with a new payment processor, for example, you could start with the authorize.net module. Starting with an existing module shows you the framework that you need to have and should give you an idea of what all of the functions do.

 

Hi Chris,

 

Thanks for your reply! I shall take a look now.

 

My problem is proving incredibly difficult to solve to me; I'm no hardcore php expert. The processor that my client wishes to use is 'Buy-Line', which appears to process things server-side rather than on a buy-line server. It's all very confusing and to be honest i've no idea what to do!

 

Thanks & regards

Dan.

Link to comment
Share on other sites

  • 1 month later...

hi there!

 

i am also interested to write some new payment and it should be only textual options of payments. So people are able to choose what payment they will use and after that e-mail with their chosen option will be sent to the owner of the shop.

any contribution???please help

Link to comment
Share on other sites

Hi Chris,

 

Thanks for your reply! I shall take a look now.

 

My problem is proving incredibly difficult to solve to me; I'm no hardcore php expert. The processor that my client wishes to use is 'Buy-Line', which appears to process things server-side rather than on a buy-line server. It's all very confusing and to be honest i've no idea what to do!

 

Thanks & regards

Dan.

 

I've written a payment and shipping module and both times I started out with an existing module like BlueNote said. There is no documentation, you just have to figure out where each function gets called and what needs to be done within that function at that point in the checkout process. Usually the processor has an example script that you can work from and tear apart.

 

But if your PHP knowledge is limited and since this is for a (hopefully) paying client, you should farm it out. Payment modules are probably the most complex addons you can create for OSC.

 

One option is to find another processor that charges the same or less AND has a well-supported OSC module and tell your client that you'll eat the setup charge if they'll move to that. You'll save yourself a ton of time and money.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

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.

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