/laravel-paypal

Laravel plugin for processing payments through PayPal. Can be used separately.

Primary LanguagePHPMIT LicenseMIT

NOT ACTIVELY MAINTAINED

Laravel PayPal

Software License Tests Type Coverage

This package contains some core code from srmklive/laravel-paypal but improves and updates this for easier usage especially in e-commerce projects.

Installation (works soon if 1.0 released)

composer require shayannosrat/laravel-paypal

Publishing Assets

You can publish the assets with the following command

php artisan vendor:publish --provider "shayannosrat\PayPal\Providers\PayPalServiceProvider"

Configuration

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= 

Support

This version supports Laravel 7 or greater.

In case of any issues, kindly create one on the Issues section.