PHPackages                             navneetrai/laravel-subscription - 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. navneetrai/laravel-subscription

ActiveLibrary[Payment Processing](/categories/payments)

navneetrai/laravel-subscription
===============================

Subscription Billing manager for Laravel 5.2

1.0.13(9y ago)193332[1 issues](https://github.com/navneetrai/laravel-subscription/issues)MITPHPPHP &gt;=7.0

Since Apr 21Pushed 8y ago3 watchersCompare

[ Source](https://github.com/navneetrai/laravel-subscription)[ Packagist](https://packagist.org/packages/navneetrai/laravel-subscription)[ Docs](https://github.com/navneetrai/laravel-subscription)[ RSS](/packages/navneetrai-laravel-subscription/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (3)Versions (22)Used By (0)

Subscription Billing for Laravel 5
==================================

[](#subscription-billing-for-laravel-5)

[![Build Status](https://camo.githubusercontent.com/9e6305afac8d03443e670e920108a8bb1e12c08934871af7bf093eb68f59633c/68747470733a2f2f7472617669732d63692e6f72672f6e61766e6565747261692f6c61726176656c2d737562736372697074696f6e2e737667)](https://travis-ci.org/navneetrai/laravel-subscription)[![Coverage Status](https://camo.githubusercontent.com/721ff8c98329ccdc2d117307b46a4308661193b98fc35a9cdf5fe2686f345f62/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6e61766e6565747261692f6c61726176656c2d737562736372697074696f6e2f62616467652e737667)](https://coveralls.io/r/navneetrai/laravel-subscription)[![Total Downloads](https://camo.githubusercontent.com/9a125cc32f2a4f7f72326ccaedf3eb5ce01841892a873977b1623c9b913aef31/68747470733a2f2f706f7365722e707567782e6f72672f6e61766e6565747261692f6c61726176656c2d737562736372697074696f6e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/navneetrai/laravel-subscription)[![Latest Stable Version](https://camo.githubusercontent.com/c6d5637a3c90a8d98328e71dda635a4558b29695e1fbd7e595a16d8a4c4d7baa/68747470733a2f2f706f7365722e707567782e6f72672f6e61766e6565747261692f6c61726176656c2d737562736372697074696f6e2f762f737461626c652e737667)](https://packagist.org/packages/navneetrai/laravel-subscription)[![Latest Unstable Version](https://camo.githubusercontent.com/00474437c39dca495524193f89875944ea38099dad3c6dfb2dd292b262a86e68/68747470733a2f2f706f7365722e707567782e6f72672f6e61766e6565747261692f6c61726176656c2d737562736372697074696f6e2f762f756e737461626c652e737667)](https://packagist.org/packages/navneetrai/laravel-subscription)[![License](https://camo.githubusercontent.com/8e51ada34b3c2c870920202565783904575f93999301b6af2295d871593e9be5/68747470733a2f2f706f7365722e707567782e6f72672f6e61766e6565747261692f6c61726176656c2d737562736372697074696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/navneetrai/laravel-subscription)

laravel-subscription is a simple laravel 5 library for creating subscription billing and handling server notifications. It is primarily meant for people outside countries like US, UK and Canada where [Stripe](https://stripe.com/), [Paypal Payments Pro](https://www.paypal.com/webapps/mpp/paypal-payments-pro) are not available.

If you want to handle non-recurring payments, you can use [Omnipay](http://omnipay.thephpleague.com/) for one-time payments and token billing.

---

- [Supported services](#supported-services)
- [Installation](#installation)
- [Registering the Package](#registering-the-package)
- [Configuration](#configuration)
- [Usage](#usage)

Supported services
------------------

[](#supported-services)

The library supports [Paypal](https://www.paypal.com) and credit card processors [2Checkout](https://www.2checkout.com/), [PayFast](https://www.payfast.co.za) and [CCNow](http://www.ccnow.com/). More services will be implemented soon.

Included service implementations:

- Paypal
- 2Checkout
- PayFast
- CCNow
- more to come!

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

[](#installation)

Add laravel-subscription to your composer.json file:

```
"require": {
  "navneetrai/laravel-subscription": "^1.0"
}

```

Use composer to install this package.

```
$ composer update

```

### Registering the Package

[](#registering-the-package)

Register the service provider within the `providers` array found in `config/app.php`:

```
'providers' => [
  // ...

  Userdesk\Subscription\SubscriptionServiceProvider::class,
]
```

Add an alias within the `aliases` array found in `config/app.php`:

```
'aliases' => [
  // ...

  'Subscription'     => Userdesk\Subscription\Facades\Subscription::class,
]
```

Configuration
-------------

[](#configuration)

There are two ways to configure laravel-subscription.

#### Option 1

[](#option-1)

Create configuration file for package using artisan command

```
$ php artisan vendor:publish --provider="Userdesk\Subscription\SubscriptionServiceProvider"

```

#### Option 2

[](#option-2)

Create configuration file manually in config directory `config/subscription.php` and put there code from below.

```
