Pizza App using PayPal REST API
https://github.com/paypal/rest-api-sample-app-php
Step 2
- Create database "paypal_pizza_app" in phpmyadmin
- Extract source codes with step 1 and then create table with install folder
Step 3
- You have a paypal account and status verified
- Setup API Access in your profile
Step 4
Step 5
Update file bootstrap.php in app folder for connection parameters and SDK Configuration with client id and secret with step 3
Step 6
Download Composer
https://getcomposer.org/download/
Run composer.bat
C:\xampp\htdocs\pizza> php composer.phar self-update
C:\xampp\htdocs\pizza> php composer.phar install
https://getcomposer.org/download/
Step 7
Composer Update
Open command (Window + R) and then write commands here
c:\cd xampp
C:\xampp>cd php
C:\xampp\php>php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
Create file composer.bat in c:/xampp/php/
Open command (Window + R) and then write commands here
c:\cd xampp
C:\xampp>cd php
C:\xampp\php>php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
Create file composer.bat in c:/xampp/php/
@ECHO OFF
SET SUBDIR=%~dp0
php %SUBDIR%\composer.phar %*
Run composer.bat
Step 8
Copy file composer.phar paste to c:/xampp/htdocs/pizza
and then write command
C:\xampp\htdocs\pizza> php composer.phar self-update
C:\xampp\htdocs\pizza> php composer.phar install
Step 9
Demo
http://localhost/pizza
