PHP SDK

PHP application demonstrating PayPal Web Service calls, including Direct Payment and Express Checkout. The latest upgrades, FAQs and announcements can always be found at http://www.paypal.com/sdk. Developer Support for the SDK can also be found at http://ppdts.custhelp.com \

Please note the SDK is compatible with PHP versions 4.3.0 and higher.

You must also have the curl and openssl extensions enabled.

Documentation

PayPal Integration Center
PayPal User Guides
API Documentation

SAMPLES

Run the following PHP command from within your installation directory to install the samples

php install.php

At the prompt for your target web directory, enter the name of the directory where you wish to install the SDK samples (eg. /usr/local/apache/htdocs/php-sdk). If your application is on a shared server, enter the full path to a subdirectory of your public HTML directory into which the installer will copy the SDK sample files. The directory should not previously exist on your server.

If you see no error messages, the installation was successful. To verify installation, browse to the /samples/php directory under your samples installation, and you should see the sample application used to execute API calls.

To run the samples:

Go to
http://www.mydomain.com/<targetDir>/samples/php


LICENSING

Read the "LICENSE.txt" file for important legal information regarding the PayPal SDK.