Web Hosting Forum | Lunarpages

Author Topic: Install the Paypal SDK for PHP  (Read 9468 times)


  • Guest
Install the Paypal SDK for PHP
« on: June 30, 2006, 06:48:47 AM »
Our shared servers do not provide shell or commandline access. You can still install the SDK manually rather than with their install.php

1. Unpack the SDK to your local machine.

2. FTP  into your server.

3. Create a directory in the root folder to hold the libraries. We are placing it under the root for security.

4. Copy the /lib/ folder from the SDK package into the new directory on your server.

5. Copy the samples folder from the SDK into a directory under public_html. You can place the /samples/ directory in public_html or into another subfolder of it if you like.

6. On your desktop, create a new file in a text editor.

7. Copy the following code into your text editor:



$sdk_dir = "/home/username/pathtolib/";
$include_path = ini_get('include_path');if(!stristr($sdk_dir,$include_path))
ini_set('include_path',$include_path . PATH_SEPARATOR . $sdk_dir)


Edit the value of $sdk_dir to be the full path to the /lib/ folder you uploaded in step 4.

i.e. If you installed /lib/ into /home/username/, the full path would be "/home/username/lib/ (Change username to cpanel username)

9. Save the file as filename 'ppsdk_include_path.inc'

10. Upload the file into the /samples/php directory with the other sample files assuming you are using PHP.

11. In your browser, browse to the samples/php directory on your server and test. You may login to your Paypal Sandbox and test with the default sandbox API profile.

Offline Jacobdixon

  • Pong! (the videogame) Master
  • *****
  • Posts: 25
Re: Install the Paypal SDK for PHP
« Reply #1 on: December 19, 2011, 08:55:45 PM »
Is there any other option to install it on Ubuntu Operating System.

PHP Development

Offline orthohin

  • Pong! (the videogame) Master
  • *****
  • Posts: 28
Re: Install the Paypal SDK for PHP
« Reply #2 on: May 23, 2012, 11:48:22 PM »

nice one


Share |