Jump to content

Duplicate PayPal Module


superlinus

Recommended Posts

Hello everyone,I'd need your help.

I would need to duplicate the paypal module in order to manage two different paypal accounts depending on visitor's origin country.

 

I did some tests but for now nothing works .I have replaced in all original files the word paypal with paypal1, in the codeand  in the file name (except in the url that recall the paypal site)but nothing.

Someone can help me please?

thank you very much

Link to comment
Share on other sites

you are very brave to try and clone the paypal module.  This is difficult even for simpler module, and not for those with a weak constitution.

 

if it was me and mine?

 

I would duplicate the following (paypal usa) paypal credentials in my mysql db configuration table, and suffix them with the country code, for example.

11.18.2013-16.58.png
http://screencast.com/t/Eq37CZAlkFm

 

if say mexico, I would suffix with _mx.

 

then I would in this example, update the paypalusa.php, to use the different configuration values...based on the country check...i.e. the smarty variables passed to the .tpl file

Link to comment
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
×
×
  • Create New...