Forums / PayPal Website Payments Pro support / Removing Website Payments Pro from Second Site

Removing Website Payments Pro from Second Site

Views: 1,135

Results 1 to 3 of 3
13 Apr 2011, 2:22 PM
#1
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Removing Website Payments Pro from Second Site

Hi All,

Hope someone can help me with this.

I have a site set up with Website Payments Pro and Express Checkout.

I also have a mobile version of the site running off the same database, however of this site, I want only express checkout as an option.

Can you tell me if there is a true/false statement somewhere I can reverse the logic on so that even though the database has WPP enables on the mobile site it will not.

Hope that makes sense and hope you can help me out.

Cheers

Phil

Phil Rogers
A problem shared is a problem solved.

13 Apr 2011, 3:47 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Removing Website Payments Pro from Second Site

You can put your own code in the update_status() method inside the paypaldp.php payment module class file to detect which "site" you're using and set status to false where needed.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Apr 2011, 3:52 PM
#3
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Removing Website Payments Pro from Second Site

DrByte:

You can put your own code in the update_status() method inside the paypaldp.php payment module class file to detect which "site" you're using and set status to false where needed.

Thanks I'll take a look into that, if I get stuck can I come back for an example? I'm hoping to avoid this if I can get express checkout working as it should on my mobile site but it's creating accounts even though I have it set to false so having a bot of a nightmare at the moment.

Phil Rogers
A problem shared is a problem solved.