NOT ACTIVELY MAINTAINED
This package contains some core code from srmklive/laravel-paypal but improves and updates this for easier usage especially in e-commerce projects.
composer require shayannosrat/laravel-paypal
You can publish the assets with the following command
php artisan vendor:publish --provider "shayannosrat\PayPal\Providers\PayPalServiceProvider"
Add the following to your .env file
# PayPal API Mode
# values: sandbox or live (default: live)
PAYPAL_MODE=
# PayPal sandbox API Credentials
PAYPAL_SANDBOX_CLIENT_ID=
PAYPAL_SANDBOX_CLIENT_SECRET=
#PayPal live API Credentials
PAYPAL_LIVE_CLIENT_ID=
PAYPAL_LIVE_CLIENT_SECRET=
This version supports Laravel 7 or greater.
In case of any issues, kindly create one on the Issues section.