This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/sample
hakito c1298112fa Fix path in bootstrap for samples when installed via composer
When installing the SDK as recommended via composer, the samples don't work because it can not find the autloader of composer
2013-10-06 20:49:49 +02:00
..
2013-03-06 18:42:06 +05:30
2013-08-26 12:21:29 +05:30
2013-08-26 12:21:29 +05:30
2013-05-30 16:58:55 +05:30
2013-08-26 12:21:29 +05:30

Rest API Samples

This sample project is a simple web app that you can explore to understand what the payment APIs can do for you. To try out the sample, run composer update --no-dev from the samples folder and you are all set. In case you cannot install composer on your machine, you can fetch the SDK download bundle from https://github.com/paypal/sdk-packages/raw/gh-pages/rest-api-sdk/php/rest-api-sdk-php-0.7.1.zip and unzip the contents to the samples folder.

The sample comes pre-configured with a test account but in case you need to try them against your account, you must

  • Obtain your client id and client secret from the developer portal
  • Update the sdk_config.ini file with your new client id and secret.

If you are looking for a full fledged application that uses the new RESTful APIs, check out the Pizza store sample app at https://github.com/paypal/rest-api-sample-app-php