This is an example of the PayPal Express Checkout API using plain PHP to make a PayPal payment.
This code does not use an SDK although it uses a basic wrapper to handle the NVP API. You can use this library as a drop in for your project.
This demo uses
- PHP
- Run
php -S 127.0.0.1:8080
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:8080/
in your browser - Click the "Make a payment" link
- You will be redirected to PayPal
- Login using the following credentials:
- Username:
[email protected]
- Password:
test1234
- Username:
- Complete the payment instructions
- You will receive a message that says "Payment completed"
- Requirements:
- Firefox with the Selenium IDE
- PHP 5.4
- Start the app by running
php -S 127.0.0.1:8080
- Load the test script in the Selenium IDE and run the script.