Untitled Page

## PHP SDK V4.3

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 https://www.paypal.com/mts
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 installation directory and you should see the paypal_php_samples directory

To run the samples:

Go to

    http://www.mydomain.com/<targetDir>/paypal_php_samples/index.php

## Providing Proxy Support

Right now, if the user is behind proxy,unable to make a API call to PayPal.

"SDKProxyProperties.php"(<installation directory>/php-sdk/lib/PayPal/) is the configuration file for Proxy setup.

Update the following variables in "SDKProxyProperties.php" for Proxy configuration.

- USE_PROXY - Set this variable to TRUE to route all the API requests through Proxy(by default it is FALSE).
- PROXY_HOST - Set this variable to Proxy Server name or IP address
- PROXY_PORT - Set this variable to Proxy Server port
- PROXY_USER - Set this variable to Proxy Server user id (optional)
- PROXY_PASSWORD - Set this variable to Proxy Server password (optional)

## LICENSING

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