PHPackages                             hypnodev/larapal - 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. hypnodev/larapal

ActiveLibrary[Payment Processing](/categories/payments)

hypnodev/larapal
================

An easy way to integrate Paypal into Laravel

v1.0.7(2y ago)451022[1 PRs](https://github.com/hypnodev/larapal/pulls)MITPHPCI failing

Since Aug 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/hypnodev/larapal)[ Packagist](https://packagist.org/packages/hypnodev/larapal)[ Docs](https://github.com/hypnodev/larapal)[ RSS](/packages/hypnodev-larapal/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (6)Versions (10)Used By (0)

 [![](https://raw.githubusercontent.com/hypnodev/larapal/master/assets/logo.png)](https://raw.githubusercontent.com/hypnodev/larapal/master/assets/logo.png)

[![Latest Version on Packagist](https://camo.githubusercontent.com/20ebd86605a0d97c96491d6d48bc9e6ac9023916079d6cccd2d8742aec821a50/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6879706e6f6465762f6c61726170616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hypnodev/larapal)[![Total Downloads](https://camo.githubusercontent.com/f2d45c45f8cd5a44e443481bad015e6a3fc107a1b68532173156829f4604cda9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6879706e6f6465762f6c61726170616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hypnodev/larapal)

A modern, easy and fluent way to allow your clients to pay with PayPal. [![banner](./assets/banner.png)](./assets/banner.png)

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

[](#installation)

Via Composer

```
$ composer require hypnodev/larapal
```

Publish the configuration with command:

```
$ php artisan vendor:publish --provider="hypnodev\Larapal\LarapalServiceProvider"
```

Add these keys in your .env:

```
PAYPAL_MODE=sandbox

PAYPAL_SANDBOX_ID=
PAYPAL_SANDBOX_SECRET=

PAYPAL_PRODUCTION_ID=
PAYPAL_PRODUCTION_SECRET=
```

*If you don't have yet credentials for PayPal API, please refer to [Get Started - PayPal Developer](https://developer.paypal.com/docs/api/overview/#get-credentials)*

Usage
-----

[](#usage)

Add `BillableWithPaypal` trait to your User model

```
