This application will demonstrate how to utilise the PayPal Checkout API in a Laravel application by creating a simple web store where users can purchase products.
You must have a local server (e.g. WAMP) running and properly configured virtual host.
- Clone the project: https://github.com/hsrahman/PayPalLaravelApp.git
- Within the root directory run the command: composer install
- Run the command: NPM install
- Run the command: cp .env.example .env
- Run the command: php artisan key:generate
- Create a database
- Update .env file with the database credentials
- Run php migration command: php artisan migrate
- Finally add some fake products and create a new user
The PayPal API is not configured yet and further instructions on how to get this working can be found in the tutorial: Beginners guide to make an e-commerce store using PayPal Checkout in Laravel.
Visit my website for more awesome tutorials at Project HN