Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Dublicate payment modules


WebPixie
 Share

Recommended Posts

Basicly I wanted to duplicate my paypal_ipn module so I could show credit cards and paypal as two seperate options. Plus it could help me track who is paying with paypal account and who is using credit cards processed by paypal.

 

If I wanted to duplicate the paypal_ipn module do I just change the file name and the class name to match it?

 

So make it paypal_ipn_cc.php and rename class to:

 

class paypal_ipn_cc {

 

and change this to the new name like this:

$this->code = 'paypal_ipn_cc';

 

 

Is there anything else I would need to change in the paypal_ipn to duplicate it without error? I tried once before but it didn't work, figured I would ask what else I needed to do.....

 

Any help would be greatly appreciated.

 

Thanks :)

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.

 Share

×
×
  • Create New...