Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cloudcreativity/laravel-stripe
Laravel integration for Stripe, including Stripe Connect.
https://github.com/cloudcreativity/laravel-stripe
Last synced: 1 day ago
JSON representation
Laravel integration for Stripe, including Stripe Connect.
- Host: GitHub
- URL: https://github.com/cloudcreativity/laravel-stripe
- Owner: cloudcreativity
- License: apache-2.0
- Created: 2019-07-16T06:51:17.000Z (over 5 years ago)
- Default Branch: develop
- Last Pushed: 2024-09-01T09:38:25.000Z (4 months ago)
- Last Synced: 2024-12-15T13:07:01.111Z (9 days ago)
- Language: PHP
- Size: 396 KB
- Stars: 40
- Watchers: 4
- Forks: 11
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Stripe
## Status
**This package no longer has active support beyond upgrading to the latest Laravel version. Please note however, that we
cannot guarantee that we will be able to maintain support for all Laravel versions going forward. The package is also on
an old version of the Stripe SDK which limits its usefulness.**Unfortunately due to only having limited time for open source work, we are unable to maintain this package to the
standard we would like. We would however accept pull requests from anyone who does want to contribute upgrades or new
features.However, if you are starting a new project it is probably best not to use this package.
## Overview
A Laravel integration for [Stripe's official PHP package.](https://github.com/stripe/stripe-php)
This package allows you to fluently query the Stripe API via repositories.
Repositories can be for either your application's Stripe account, or connected Stripe accounts.### Example
```php
// For your application's account:
/** @var \Stripe\PaymentIntent $intent */
$intent = Stripe::account()
->paymentIntents()
->create('gbp', 1500);// For a Stripe Connect account model:
$account->stripe()->paymentIntents()->create('gbp', 999);
```### What About Cashier?
This package is meant to be used *in addition* to [Laravel Cashier](https://laravel.com/docs/billing),
not instead of it.Our primary use-case is Stripe Connect. We needed a package that provided really easy access to data from
connected Stripe accounts. We wanted to make interacting with the entire Stripe API fluent,
easily testable and highly debuggable.In contrast, Cashier does not provide full Stripe API coverage, and provides
[no support for Stripe Connect.](https://github.com/laravel/cashier/pull/519)
So if you need to do more than just Cashier's billing functionality, install this package as well.## Installation
Installation is via Composer. Refer to the [Installation Guide](./docs/installation.md) for
instructions.## Documentation
1. [Installation](./docs/installation.md)
2. [Accessing the Stripe API](./docs/repositories.md)
3. [Receiving Webhooks](./docs/webhooks.md)
4. [Stripe Connect](./docs/connect.md)
5. [Artisan Commands](./docs/console.md)
6. [Testing](./docs/testing.md)## Version Compatibility
The following table shows which version to install. We have provided the Stripe API version that we
developed against as guide. You may find the package works with older versions of the API.| Laravel | Stripe PHP | Stripe API | Laravel-Stripe | Cashier |
|:--------|:-----------|:---------------|:---------------|:----------------------------|
| `10.x` | `^7.52` | `>=2020-03-02` | `0.7.x` | `^14.8` |
| `9.x` | `^7.52` | `>=2020-03-02` | `0.6.x` | `^12.3` |
| `8.x` | `^7.52` | `>=2020-03-02` | `0.5.x\|0.6.x` | `^12.3` |
| `7.x` | `^7.0` | `>=2020-03-02` | `0.4.x` | `^12.0` |
| `6.x` | `^6.40` | `>=2019-05-16` | `0.2.x` | `^9.0\|^10.0\|^11.0\|^12.0` |## Contributing
We have only implemented the repositories for the Stripe resources we are using in our application.
Repositories are very easy to implement - for example, the
[payment intent repository](./src/Repositories/PaymentIntentRepository.php) -
because they are predominantly composed of traits. Then they just need to be added to
[the connector class](./src/Connector.php).If you find this package is missing a resource you need in your application, an ideal way to contribute
is to submit a pull request to add the missing repository.