Download the PHP package oixan/cashier-connect without Composer
On this page you can find all versions of the php package oixan/cashier-connect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cashier-connect
Introduction
Laravel Cashier Connect add support for Stripe Connect Subscription to laravel Cashier (based on v10.7.1).
Documentation
1) Install the package
2) Follow the instructions of cashier in the official guide The installations process is the same.
3) Add the Trait to User model from
Create your .env file
You will need to set the Stripe Testing Secret env variable before your vendor/bin/phpunit
call in order to run the Cashier Connect tests:
STRIPE_SECRET=<your Stripe secret>
Please note that due to the fact that actual API requests against Stripe are being made, these tests take a few minutes to run.
How this package work.
All the default cashier methods remain the same if not direct support by CashierConnect.
This package assume you created yours Stripe Accounts directly or through API then assign the Account id to user->stripe_account_id.
Every user can be a customers or an Stripe Account.
Basic Method Added to User model
IMPORTANT any further call after setStripeAccount() will be direct to Stripe Account so remember to call unsetStripeAccount() if needed.
Methods Supported (Version 0.3.0).
The method make every subsequent call goes from your Platform to Stripe Account passed like parameter. If you need to change the userAccount or pause the StripeAccount call see the previous section.
Creating Subscriptions
Add user detail
Checking Subscription Status
Subscribe to plan
Reccuring check
Cancelled Subscription Status
Changing Plans
Subscription Quantity
Subscription Ancor Date
Subscription Trials
Cancelling Subscriptions
Resume Subscriptions
*All cashier methods not in list are not tested to work with Stripe Account
More.
If you want set an application fee set on user model
The Web hook from stripe connect have different secret key. Set
to allow cashier connect to accept webhook from stripe connect.
License
Laravel Cashier Connect is open-sourced software licensed under the MIT license.
All versions of cashier-connect with dependencies
ext-json Version *
dompdf/dompdf Version ^0.8.0
illuminate/contracts Version ~5.8.0|^6.0|^7.0
illuminate/database Version ~5.8.0|^6.0|^7.0
illuminate/http Version ~5.8.0|^6.0|^7.0
illuminate/log Version ~5.8.0|^6.0|^7.0
illuminate/notifications Version ~5.8.0|^6.0|^7.0
illuminate/routing Version ~5.8.0|^6.0|^7.0
illuminate/support Version ~5.8.0|^6.0|^7.0
illuminate/view Version ~5.8.0|^6.0|^7.0
moneyphp/money Version ^3.2
nesbot/carbon Version ^2.0
stripe/stripe-php Version ^7.0
symfony/http-kernel Version ^4.3|^5.0
symfony/intl Version ^4.3|^5.0