msonowal/laravel-razor-pay-cashier
最新稳定版本:v2.1
Composer 安装命令:
composer require msonowal/laravel-razor-pay-cashier
包简介
Laravel Cashier provides an expressive, fluent interface to Razorpay's subscription billing services.
README 文档
README
Introduction
Laravel Cashier inspired Razorpay Cashier provides an expressive, fluent interface to Razorpay's 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.
License
Laravel Cashier is open-sourced software licensed under the MIT license.
Found any bugs? or improvement open an issue or send me a PR
统计信息
- 总下载量: 23.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 27
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-08