VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Payment Modules => Topic started by: huntersinclair on September 30, 2005, 07:57:25 AM

Title: Paypal Website Payments Pro - no hassles
Post by: huntersinclair on September 30, 2005, 07:57:25 AM
There is a Paypal Pro Modification for phpShop at
http://www.zenatdesign.com/payment

It is very simple, lightweight - no SDK or anything needed. 
Best yet, it does not violate any of the paypal business rules - Like the main one about how you must offer the option to checkout via Paypal Express before collecting any user data or making the user login.

Title: Re: Paypal Website Payments Pro - no hassles
Post by: Ckovac on September 30, 2005, 21:39:48 PM
yeah, and it's only $40... lol  most people here are here because mambo and phpshop are free mate.  If I had $40 to blow it wouldn't be on a COMPONENT.
Title: Re: Paypal Website Payments Pro - no hassles
Post by: clintanderson on December 01, 2005, 18:10:47 PM
Not to mention we don't know if mambo version of this paypal pro module works with virtuemart. I am looking into figuring this out on my own unless someone has done this for virtuemart on shared hosting through GoDaddy.

Clint

Edit: 12/3/2005: I was looking at your demo site hunter, and I am not sure the process is working 100%  Granite, it is working, I just am not feeling a warm fuzzy about what you put together.  I am going to check out your demo page again and give details in the near future.
Title: Re: Paypal Website Payments Pro - no hassles
Post by: Comenius on December 04, 2005, 21:27:10 PM
Would be very interested if someone could get WPP working with VirtueMart.  I'm really hoping someone can figure it out!   :)
Title: Re: Paypal Website Payments Pro - no hassles
Post by: clintanderson on December 05, 2005, 14:45:11 PM
I am working on it very slowly, but I am working on it. I will post here all the steps I took to get it working when I am finished.

Clint
Title: Re: Paypal Website Payments Pro - no hassles
Post by: Comenius on December 06, 2005, 05:17:33 AM
That would be great, Clint, thank you!
Title: Re: Paypal Website Payments Pro - no hassles
Post by: clintanderson on December 06, 2005, 17:50:28 PM
The latest for me is the shared hosting issue and the PEAR install, there is a guy in the paypal forums that claims that this can be done, but I am waiting for a reply at this point. This is so confusing, paypal really didn't do a good job from what I am reading with regards to the paypal pro sdk etc.  If you download the documentation there are like 400 pages of stuff to read, none of which makes sense to me, because of my ignorance in php and direct api, and PEAR, and paypal.  I was looking and there are paypal solutions for every possible cart but virtuemart, I am wondering if that php_shop paypal pro integration will work with virtuemart, anyone have any idea? That hunter guy in this forum is MIA I think hehe.

Clint
Title: Re: Paypal Website Payments Pro - no hassles
Post by: Comenius on December 06, 2005, 18:02:02 PM
I'm in a shared environment as well, and was able to get the pear piece working last night by modifying my top level .htaccess file to include the following:

php_value include_path ".:/usr/local/lib:/blah/blah/blah/webroot/includes/PEAR"

I then dumped all the contents of the PayPal 2.0 SDK into the PEAR directory and voila... things started to work.

Problem is I'm still getting some errors, but it's not from the application refusing to run, they seem to be with the PayPal responses.

Closer, but not there yet...!

:)
Title: Re: Paypal Website Payments Pro - no hassles
Post by: clintanderson on December 06, 2005, 19:34:29 PM
Comenius, I am stuck because of this:   php_value include_path ".:/usr/local/lib:/blah/blah/blah/webroot/includes/PEAR"

My directory structure does not contain /user/local/lib:

unless I am suppost to put that in reguardless if I have those folders or not, the colon after that before the blah/blah/blah does that signify where I am suppost to put my directory structure for my local folders where the PEAR is installed?

Clint
Title: Re: Paypal Website Payments Pro - no hassles
Post by: Comenius on December 06, 2005, 19:44:32 PM
Hi Clint,

Sorry for not being clear. 

From the Joomla backend, if you click System -> System Info -> PHP Info, you will find your current PHP include_path.  That needs to be the first part.  For me it's .:/usr/local/lib/php

After that, you need to include the full path to where you put the PayPal SDK.  I dumped it in the includes directory under the PEAR directory that was already there as part of my Joomla 1.0.4 install.  For me, that was :/mnt/webhosting/sites/b/blah.com/includes/PEAR

Putting it all together gets you the line you need to include in the .htaccess file: 

php_value include_path ".:/usr/local/lib:/mnt/webhosting/sites/o/blah.com/includes/PEAR"

Hope this is more clear!

:)
Title: Re: Paypal Website Payments Pro - no hassles
Post by: clintanderson on December 06, 2005, 19:46:27 PM
ah bonus! That will get me hopefully one step closer to the solution. Thanks a million Comenius!

Clint
Title: Re: Paypal Website Payments Pro - no hassles
Post by: Comenius on December 06, 2005, 19:52:26 PM
You bet!  Hopefully between a few of us we can wrestle this to the ground and make it relent!!

Also, as an aside, if you're using Windows for your host as opposed to a Unix flavor, I believe the delimiter you need to use is a semicolon and not a colon.  Everything else should be the same.

For reference:  http://us2.php.net/manual/en/function.set-include-path.php
Title: Re: Paypal Website Payments Pro - no hassles
Post by: clintanderson on December 06, 2005, 21:06:02 PM
Amen to that buddy, thanks for the link btw. I am using Linux flavor on my shared hosting. So this should work out great!

Talk to you soon,
Clint
Title: Re: Paypal Website Payments Pro - no hassles
Post by: Comenius on December 08, 2005, 18:57:41 PM
As an update, I still haven't been able to get this to work with VirtueMart.  I actually started to look around for alternatives, and found the following contribution for osCommerce that is referenced on PayPal's own web pages for WPP:  http://www.oscommerce.com/community/contributions,3716

After getting osCommerce up and running and this contribution installed and configured, I was able to process credit cards through PayPal as I've been trying to do with VirtueMart.  So, it appears as if there is open source code out there to make WPP work, it just doesn't yet exist for VirtueMart.  Looking at the osCommerce contribution, it seems fairly involved, and I'm afraid I can't figure out an easy way to port it to VirtueMart, at least with my abilities.  Perhaps someone more skilled at MySQL and PHP could do so...?
Title: Re: Paypal Website Payments Pro - no hassles
Post by: clintanderson on December 08, 2005, 19:54:08 PM
Comenius,

There must be 40-50 carts out there with WPP working, I am not understanding why there is not one the is free for the open source virtuemart. I wish I had a better grasp of how all the payment modules work, so I could make something work with virtuemart and give it away free! I have also been looking for alternative carts that have the WPP worked out. I was looking at Zencart, and osCommerce also.  I have not given up on Virtuemart yet, but I am getting tired of working on this issue.

Clint
Title: Re: Paypal Website Payments Pro - no hassles
Post by: skwiggly on December 08, 2005, 22:42:22 PM
Hello all,

I haven't been able to get the PDP module working with DPP, either. I'm getting a parse error
Fatal error: Call to undefined function: getack() in /home/content/y/o/u/youtay/html/administrator/components/com_virtuemart/classes/payment/ps_pdp.php on line 223

which seems to be related to the previous issue I was having, which was due to the VirtueMart class "Log" conflicting with the same PEAR class "Log" in my own PEAR installation I did in my webroot. That error went away when I upgraded to VM 1.0.1, but I have the feeling there's still a conflict, because the getAck function above is referring to the PEAR log. Any suggestions here would be awesome!

Anyway, I've gotten as far as getting WebConsole running, creating a profile and doing a successful (I think -- no errors at least) API call with it. Can someone at least tell me, if I were able to resolve my PHP parse error, is this an indication that the PayPal API is in fact working on my webserver? PayPal's "documentation" leaves me pretty unclear on how I should proceed from here.....

regards,
Scott
::::::::::::::::::::::::::::::
~~skwiggly design~~
http://skwiggly.com
::::::::::::::::::::::::::::::
Title: Re: Paypal Website Payments Pro - no hassles
Post by: clintanderson on December 09, 2005, 14:35:19 PM
You are probably one or 2 steps in front of me skwiggly, so I am not going to be of any use to you.  Let's keep on this thing, I am sure we will work it out eventually.  Also, skwiggly you might want to check out the forums at developer.paypal.com  there is no www in front of that so I am not sure what else to do.

Clint
Title: Re: Paypal Website Payments Pro - no hassles
Post by: plebe on December 14, 2005, 19:43:34 PM
Hi Folks,

Great to hear you are all working on this. I wish I knew more about PHP! 

Just as a thought, here are some resources that might help you or give some bit of info you may not have found. 

http://www.oreillynet.com/pub/a/javascript/excerpt/paypalhacks_chap1/
http://payloadz.com/
http://www.e-junkie.com/ej/index.php#paypal-ipn
http://paypaldev.org/active.asp

Good luck!  Thanks for the hard work.
Title: Re: Paypal Website Payments Pro - no hassles
Post by: SuperWaterMan on December 25, 2005, 05:17:36 AM
Hi Folks,

Great work!

I am praying for you. I'll contact paypal and ask them what they can do to move the process forward.

Truly,
Leslie
http://www.WaterCheck.biz
Transforming Our Relationship To Water :)
Title: Re: Paypal Website Payments Pro - no hassles
Post by: fidel on January 26, 2006, 08:13:53 AM
Did this thread wonder off somewhere else? Is there any progress?
Title: Re: Paypal Website Payments Pro - no hassles
Post by: skwiggly on January 26, 2006, 08:26:44 AM
I was unable to get past a certain point trying to implement PayPal WPP myself, so I decided to go with Hunter Sinclair's solution (http://www.zenatdesign.com/payment). Back at the beginning of Dec 2005 he said he was working on the VirtueMart version and hoped to have it ready in a couple weeks, but as far as I know it's still not done. So hopefully it's close to completion.....

regards,
Scott
Title: PROGRESS???
Post by: fidel on January 26, 2006, 10:10:41 AM
Thanks for the quick response. I've been busy doing some research and am probably on the right track. I have toggled through the free and paid solutions provided below in order to make direct Paypal Pro Website work upon my site.

http://www.openzion.org/documentations/viewcontent-4.html
http://zenatdesign.com/mambo_mod/index.php
http://www.zenatdesign.com/mambo_mod/install.txt

The result is that upon checkout and submitting the order for processing, the page goes blank. Below is essentially what I have listed on my configuration tab.

USERNAME: henry_api1.mysite.com
PASSWORD: uraturkey
SUBJECT: myemail@mysite.com
CERTIFICATE: http://www.mamboroot.com/administrator/components/com_phpshop/classes/payment/authorized_payment_cert.txt

One problem I am also having is that when changing the Options Mode within the Configuration Tab to Live Mode, it does not stay live. Likewise, the password does not remain changed upon clicking save.

Any thoughts???
Title: Re: Paypal Website Payments Pro - no hassles
Post by: Tom Miller on February 04, 2006, 14:45:43 PM
Anyone looking for PayPal Pro solution with VM 1.0.X.. see here http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=15133.0
Title: Re: Paypal Website Payments Pro - no hassles
Post by: fidel on February 06, 2006, 18:57:26 PM
Does this mean it is dead for the moment?
Title: Re: PROGRESS???
Post by: rightminddesigns on February 09, 2006, 20:37:43 PM
Quote from: fidel on January 26, 2006, 10:10:41 AM
Thanks for the quick response. I've been busy doing some research and am probably on the right track. I have toggled through the free and paid solutions provided below in order to make direct Paypal Pro Website work upon my site.

http://www.openzion.org/documentations/viewcontent-4.html
http://zenatdesign.com/mambo_mod/index.php
http://www.zenatdesign.com/mambo_mod/install.txt

The result is that upon checkout and submitting the order for processing, the page goes blank. Below is essentially what I have listed on my configuration tab.

USERNAME: henry_api1.mysite.com
PASSWORD: uraturkey
SUBJECT: myemail@mysite.com
CERTIFICATE: http://www.mamboroot.com/administrator/components/com_phpshop/classes/payment/authorized_payment_cert.txt

One problem I am also having is that when changing the Options Mode within the Configuration Tab to Live Mode, it does not stay live. Likewise, the password does not remain changed upon clicking save.

Any thoughts???

fidel, I am not postive but I think the certificate path should be the physical path, not the web path. It should look something like /home/fidels_site/public_html/administrator/components/com_phpshop/classes/payment/authorized_payment_cert.txt

I don't have it installed and working yet because of a missing PEAR module (I think), but give a path like that a try and see if it works. I'll update when I get mine running and let everyone know what I had to do. I am using the PDP version from OpenZion.