cbetta / paypal-php-rest-login

Example that shows how to use the PayPal REST API with the PHP SDK to let a user log in with PayPal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using the PayPal REST API in PHP to log in a user with PayPal

Build Status

This is an example of the PayPal REST API using the PHP SDK to log in a user with PayPal.

Technology

This demo uses

Running the demo

  • 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
  • Complete the instructions
  • You will receive a message that says "Hi Hiro Protagonist"

Running the test

  • Requirements:
  • Start the app by running php -S 127.0.0.1:9292
  • Load the test script in the Selenium IDE and run the script

About

Example that shows how to use the PayPal REST API with the PHP SDK to let a user log in with PayPal


Languages

Language:PHP 100.0%