Laravel Cashier provides an expressive, fluent interface to Razorpay's subscription billing services.
This package is auto-updated.
Last update: 2021-08-26 22:30:46 UTC
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.
composer require "abhishekkhaware/laravel-razor-pay-cashier"
Next, register the service provider in your
config/app.php configuration file.
define these keys in services
'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
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
RAZORPAY_KEY= RAZORPAY_SECRET= RAZORPAY_MODEL=
TODO Add Invoicing generating PDF based on line items in application side
Thank you for considering contributing to the Cashier. You can read the contribution guide lines here.
Laravel Cashier is open-sourced software licensed under the MIT license.