YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Getting Started with PHP Options
mabu
#1 Posted : Wednesday, August 03, 2005 12:14:19 AM
Rank: Starting Member

Groups: Registered

Joined: 8/2/2005
Posts: 6
Location: ,
Please forgive me if this is inappropriate but I am trying to sift through the sea of documentation on this subject and I keep getting pulled in different directions so I am hoping I can get some guidance on the proper path. Here's the situation. I am a PHP developer and I have a client who wants to integrate automated payment into their web site. I figured the best approach might be to integrate Paypal, so I've been researching how to do this. The first thing I discovered is that Paypal needed SOAP. So I've been running around integrating SOAP into the PHP environment; that in turn created a cascading array of dependencies I had to implement. On top of this, the Pear PHP module is not in the stable tree, so it made me less comfortable with whether or not I could consider this technology suitable for mission-critical applications. At some point I figured, there's no way Paypal is ignoring the PHP community and there must be some more resources and I found the SDK but I can't seem to find the appropriate documentation and have stacks of printed manuals in front of me involving various technologies and it's quite confusing. I have approximately 300 merchants I do e-commerce for. I'm in the process of converting a C-based shopping cart system over to PHP/MySql. I've decided to move to PHP because it seems mature at this point. I'd like to offer Paypal integration. This is my first project where I will test how easily I can integrate PHP with Paypal, but I need to make sure I'm not going off on some tangent. I have about two weeks to get this thing working. If I can't get it going via Paypal, I'll fall back to my old technologies, but I'd prefer to try these new systems so I need some help in how I should proceed. From what I gather, I probably want to do the Paypal Pro route, just because I want all the options available to me. So I have a few questions: 1. What core documentation do I need to absorb (URLs to specific stuff). I've got the Web site payments pro integration guide, but I stopped once I realized I needed SOAP and got lost in that. 2. How do I gain access to the sandbox area where I can run tests? 3. Do I need the Pear SOAP libraries or do the PHP samples (which I can't find documentation for) supercede the need for the soap library? 4. Has this system been tested under PHP 4.3.10? Is there any advantage to using PHP 5.x? 5. If I need Soap, will the current Pear version 0.9.1 work? 6. How can I check to make sure my PHP setup has the libraries and resources needed? 7. Are there some remedial samples that show how this all works? 8. Is there a clear sequence of "here's what you need to do: a, b, c" to get this thing set up? Thanks very much for any assistance you can offer!!
Sponsor  
 
mabu
#2 Posted : Thursday, August 04, 2005 12:18:24 AM
Rank: Starting Member

Groups: Registered

Joined: 8/2/2005
Posts: 6
Location: ,
Any Paypal people here willing to help? Anyone willing to help? Are my questions stupid or something?
Icaros
#3 Posted : Thursday, August 04, 2005 2:14:29 PM
Rank: Starting Member

Groups: Registered

Joined: 8/1/2005
Posts: 8
Location: ,
You're not alone, I'm in the same boat as you. The way this is setup is very confusing... I'm trying to get this to work on a remote webhost that won't let me run those PEAR/UNIX commands to install the SDK. Wish this was easier... I did, however, find this site while browsing these forums:

https://paypaltech.com/Stephen/pwpp/code/

Might help you out a bit.
mabu
#4 Posted : Saturday, August 06, 2005 10:20:46 PM
Rank: Starting Member

Groups: Registered

Joined: 8/2/2005
Posts: 6
Location: ,
There seems to be a bug in the signup form for the developers network - that is very annoying, and another problem.

So I've gone back to looking at website payments standard, but I am wondering if there is any way for paypal to notify the merchant via a specific URL that the transaction was successful? Anyone know? What if you want to offer something like automated web site access upon payment? Can Paypal be programmed to send some token back to your server to confirm the transaction was successful (using the standard merchant theme -- I understand you can query paypal under website payments pro.. assuming anyone actually knows how that crap works... but is there any way to use the standard buy buttons and have them work?) I see sites like fark.com which appear to be using the standard system in an automated manner. Are they implementing some script to verify the transaction was successful by reading an inbound e-mail, or is there a more efficient way? Anyone know?

carlosmay
#5 Posted : Tuesday, August 09, 2005 11:07:55 PM
Rank: Starting Member

Groups: Registered

Joined: 8/9/2005
Posts: 2
Location: ,
Ok guys... you don't need SOAP to work with Paypal.

It's funny i found this thread searching for SOAP sample implementations... I never done it before... and the samples i've found are too complex.

THE THING IS... i have several websites working with Paypal... and i know nothing about SOAP.

https://www.paypal.com/c...are_dev_kit_php-outside

Let me know if you have any questions.

Carlos.
gfppdev
#6 Posted : Saturday, August 13, 2005 1:16:11 AM
Rank: Starting Member

Groups: Registered

Joined: 3/20/2005
Posts: 9
Location: ,
Hey Mabu,

I had the same problem as you. I think Paypal has done a great job with their Payments Pro service, etc, but their documentation (clear technical docs that is) is severely lacking. I hunted high and low but actually ended up just phoning them and talked to a guy there which was a huge help. Paypal tends to throw up about 50,000 pages of documentation to sift through, yet it somehow may not address the most important questions (which was the case for me)...

I'll try my best to help you, I know how frustrating it can be. I'm sure the documentation and resources will get better over time. They really could use a detailed, step by step technical guide about how to integrate actual code in the SDK in a 'For-Dummies' style.


1. What core documentation do I need to absorb (URLs to specific stuff). I've got the Web site payments pro integration guide, but I stopped once I realized I needed SOAP and got lost in that.
-https://www.paypal.com/en_US/pdf/PP_WebsitePaymentsPro_IntegrationGuide.pdf
-https://www.paypal.com/en_US/pdf/PP_WebsitePaymentsPro_APIReference.pdf
-there are more but they honestly aren't very helpful, for example, nowhere in these two above guides actually tells you what to do on a code level. Nothing about how to 'integrate' anything, just a high level overview.... I was pretty disappointed by this.

2. How do I gain access to the sandbox area where I can run tests?
-https://www.paypal.com/en_US/pdf/PP_Sandbox_UserGuide.pdf

3. Do I need the Pear SOAP libraries or do the PHP samples (which I can't find documentation for) supercede the need for the soap library?
-get the PHP SDK from https://www.paypal.com/sdk and install it via PEAR (there is info on how to do that in the SDK). This is one of the weakest links in the documentation, in my experience. Fear not, there are more links below.

4. Has this system been tested under PHP 4.3.10? Is there any advantage to using PHP 5.x?
-stick with 4.x.

5. If I need Soap, will the current Pear version 0.9.1 work?
-you don't need to actually write any SOAP if you are using the PHP SDK, as the PHP calls are wrappers to the SOAP and all the data becomes available via PHP objects. As for the version, I thinnk it should be fine, but not sure. Just update it from within PEAR if you can.

6. How can I check to make sure my PHP setup has the libraries and resources needed?
-once you get pear running you can use the command 'pear list' to tell you what is installed. Check the readme/install file that comes with the PHP SDK for more info with that. You'll need OpenSSL I know, for example.

7. Are there some remedial samples that show how this all works?
-I found a great post by Paypal_Cory here for direct payment:
http://www.paypaldev.org/topic.asp?TOPIC_ID=10394
ALSO THESE:
http://paypaltech.com/Dave/api_sourcebook/html/php.html
http://www.oreilly.com/catalog/payhks/
http://www.helloknitty.com (a site that has everything done with Website Payments Pro)
http://paypaltech.com/Dave/api_sourcebook/html/example_SOAP/dcc_ex/dcc_ex_other.html
https://paypaltech.com/Stephen/pwpp/code/
https://paypaltech.com/Stephen/pwpp/

8. Is there a clear sequence of "here's what you need to do: a, b, c" to get this thing set up?
-the above links should cover that.


I hope this helps, best of luck to you!

-Jason
replik8
#7 Posted : Thursday, August 18, 2005 1:17:20 AM
Rank: Starting Member

Groups: Registered

Joined: 8/18/2005
Posts: 2
Location: ,
https://www.paypal.com/c.../SoftwareDevKit-outside

I don't understand why the link to the win2k php sdk here says win2k is supported, but the instructions says it assumes you are installing on apachek/linux? Can PEAR & curl be installed on win2k? Is this required to use the PHP SDK? Thanks in advance.
anaknakalbill
#8 Posted : Monday, August 22, 2005 3:53:41 PM
Rank: Starting Member

Groups: Registered

Joined: 8/22/2005
Posts: 2
Location: ,
I have tried to use the codes found in https://paypaltech.com/Stephen/pwpp/code/ . I changed all the necessary informations such as the api username and password. I have added all the API stuffs in the SandBox.

But, somehow, it processed everything correctly, but SandBox PayPal account did not receive any order.

Can anybody help me here? Or should I start a new thread?

Heru Setiawan
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.353 seconds.