PHPackages                             epmnzava/paypal-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. epmnzava/paypal-laravel

ActiveLibrary[Payment Processing](/categories/payments)

epmnzava/paypal-laravel
=======================

This is a laravel package for intergration with paypal

1.7(3y ago)58292MITPHPPHP ^7.1|^7.2|^7.3|^7.4|^8.0

Since Jan 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/dbrax/paypal-laravel)[ Packagist](https://packagist.org/packages/epmnzava/paypal-laravel)[ Docs](https://github.com/dbrax/paypal-laravel)[ RSS](/packages/epmnzava-paypal-laravel/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

Paypal Server Intergration With Laravel
=======================================

[](#paypal-server--intergration-with-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0ad34b24ce448dc46fc0cd5a720a4c5210e8bb56c50f82f28c4b036fc34f6e5e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65706d6e7a6176612f70617970616c2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/epmnzava/pesapal)[![Build Status](https://camo.githubusercontent.com/cd1eded9b4851c574354c09ac622c6b120faa72e1d2671138883b7f88e7382a5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f65706d6e7a6176612f70617970616c2d6c61726176656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/epmnzava/pesapal)[![Total Downloads](https://camo.githubusercontent.com/a39709aa20e09e4fc9d3efa9772142a3cc8a5fa08bac6e57e68692f340d7ece3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65706d6e7a6176612f70617970616c2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/epmnzava/pesapal)[![Emmanuel Mnzava](https://camo.githubusercontent.com/15b68fe6b51c375a750cb19d7a7a707f5c317c4941a7709e499c35b510be8ac9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d456d6d616e75656c2532304d6e7a6176612d677265656e)](mailto:epmnzava@gmail.com)

This package is meant to help laravel developers to easily integrate their server side web application or web service with [Paypal ](https://developer.paypal.com/docs/archive/checkout/how-to/server-integration/)

[![alt text](https://github.com/dbrax/paypal-laravel/raw/main/src/assets/paypal_server.png)](https://github.com/dbrax/paypal-laravel/blob/main/src/assets/paypal_server.png)

Installation
------------

[](#installation)

Version Matrix
--------------

[](#version-matrix)

VersionLaravelPHP Version1.58.0&gt;= 8.01.38.0&gt;= 7.31.27.0&gt;= 7.2.5You can install the package via composer:

```
composer require epmnzava/paypal-laravel
```

Update your config (for Laravel 5.4 and below)
==============================================

[](#update-your-config-for-laravel-54-and-below)

Add the service provider to the providers array in config/app.php:

```
"Epmnzava\PaypalLaravel\PaypalLaravelServiceProvider"::class

```

Add the facade to the aliases array in config/app.php:

```
'Paypal'=>Epmnzava\PaypalLaravel\PaypalLaravelFacade::class,

```

Publish the package configuration (for Laravel 5.4 and below)
=============================================================

[](#publish-the-package-configuration-for-laravel-54-and-below)

Publish the configuration file and migrations by running the provided console command:

```
php artisan vendor:publish --provider="Epmnzava\PaypalLaravel\PaypalLaravelServiceProvider"

```

### Environmental Variables

[](#environmental-variables)

PAYPAL\_CLIENT\_ID `your provided paypal client id `

PAYPAL\_CLIENT\_SECRET `your provided paypal client secret`

PAYPAL\_REDIRECT\_URL `your  redirect url`

PAYPAL\_CANCEL\_URL `your  cancel url`

PAYPAL\_ENVIRONMENT `your  environment either test or production `

PAYPAL\_CURRENCY\_CODE `currency put TZS for Tanzanian Shillings`

PAYPAL\_ORG\_NAME `your organization name`

Usage
-----

[](#usage)

```
