Announcement

Collapse
No announcement yet.

Install the Paypal SDK for PHP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Install the Paypal SDK for PHP

    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:

    Code:

    <?php

    $sdk_dir = "/home/username/pathtolib/";
    $include_path = ini_get('include_path');if(!stristr($sdk_dir,$incl ude_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.

    Thanks
Working...
X