Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msonowal/laravel-razor-pay-cashier
The starting brolerplate for adding Subscription to your laravel App
https://github.com/msonowal/laravel-razor-pay-cashier
cashier laravel laravel-cashier razorpay subscriptions
Last synced: 6 days ago
JSON representation
The starting brolerplate for adding Subscription to your laravel App
- Host: GitHub
- URL: https://github.com/msonowal/laravel-razor-pay-cashier
- Owner: msonowal
- License: mit
- Created: 2017-12-08T18:54:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T05:49:52.000Z (over 2 years ago)
- Last Synced: 2024-09-24T09:37:45.429Z (3 months ago)
- Topics: cashier, laravel, laravel-cashier, razorpay, subscriptions
- Language: PHP
- Homepage:
- Size: 55.7 KB
- Stars: 24
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Changelog: changes.md
- Contributing: contributing.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Laravel Razorpay Cashier
[![StlyeCI](https://styleci.io/repos/113607269/shield)](https://styleci.io/repos/113607269)
[![Latest Stable Version](https://poser.pugx.org/msonowal/laravel-razor-pay-cashier/v/stable?format=flat-square)](https://packagist.org/packages/msonowal/laravel-razor-pay-cashier)
[![License](https://poser.pugx.org/msonowal/laravel-razor-pay-cashier/license?format=flat-square)](https://packagist.org/packages/msonowal/laravel-razor-pay-cashier)
[![Total Downloads](https://poser.pugx.org/msonowal/laravel-razor-pay-cashier/downloads?format=flat-square)](https://packagist.org/packages/msonowal/laravel-razor-pay-cashier)
[![Monthly Downloads](https://poser.pugx.org/msonowal/laravel-razor-pay-cashier/d/monthly?format=flat-square)](https://packagist.org/packages/msonowal/laravel-razor-pay-cashier)
[![Daily Downloads](https://poser.pugx.org/msonowal/laravel-razor-pay-cashier/d/daily?format=flat-square)](https://packagist.org/packages/msonowal/laravel-razor-pay-cashier)
[![HitCount](http://hits.dwyl.io/msonowal/laravel-razorpay-cashier.svg)](http://hits.dwyl.io/msonowal/laravel-razorpay-cashier)## Introduction
Laravel Cashier inspired Razorpay Cashier provides an expressive, fluent interface to [Razorpay's](https://razorpay.com) subscription billing services. It handles almost all of the boilerplate subscription billing code you are dreading writing. In addition to basic subscription management, Cashier can handle subscription "quantities", cancellation grace periods.
## Installation
`composer require "msonowal/laravel-razor-pay-cashier"`Next, register the service provider in your `config/app.php` configuration file.
`Msonowal\Razorpay\Cashier\CashierServiceProvider`
### Environment Configurations
define these keys in `config/services.php`
```
'razorpay' => [
'model' => App\Models\User::class,
'key' => env('RAZORPAY_KEY'),
'secret' => env('RAZORPAY_SECRET'),
],
```
This will register a singleton which can be resolved by using `razorpay` as a resolver## Official Documentation
TODO Documentation
For time being you can follow laravel cashier's documentation for implementaion, and apis I have kept almost same signature with modifications to razorpay#### .env
RAZORPAY_KEY=
RAZORPAY_SECRET=
RAZORPAY_MODEL=## Running Cashier's Tests Locally
TODO
Add Invoicing generating PDF based on line items in application side## Contributing
Thank you for considering contributing to the Cashier. You can read the contribution guide lines [here](contributing.md).
## License
Laravel Cashier is open-sourced software licensed under the [MIT license](LICENSE.txt).
# Found any bugs? or improvement open an issue or send me a PR