This is an example of the PayPal REST API using the PHP SDK to log in a user with PayPal.
This demo uses
- PHP
- Composer
- The PayPal REST PHP SDK (0.8.3 >)
- Install all dependencies with
composer install
- Run
php -S 127.0.0.1:9292
to start the app (requires PHP 5.4 or above) or load it in your web server of choice. - Visit
http://127.0.0.1:9292/
in your browser - Click the "Log In with PayPal" button
- You will be redirected to PayPal
- Login using the following credentials:
- Username:
us-customer@commercefactory.org
- Password:
test1234
- Username:
- Complete the instructions
- You will receive a message that says "Hi Hiro Protagonist"
- Requirements:
- Firefox with the Selenium IDE
- PHP 5.4
- Start the app by running
php -S 127.0.0.1:9292
- Load the test script in the Selenium IDE and run the script