PHPackages                             dystcz/dystore-stripe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. dystcz/dystore-stripe

ActiveLibrary[Payment Processing](/categories/payments)

dystcz/dystore-stripe
=====================

Dystore Stripe payment adapter

1.0.14(3mo ago)00MITPHPPHP ^8.2

Since Sep 23Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/dystcz/dystore-stripe)[ Packagist](https://packagist.org/packages/dystcz/dystore-stripe)[ Docs](https://github.com/dystcz/dystore)[ RSS](/packages/dystcz-dystore-stripe/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (45)Used By (0)

Dystore Stripe Adapter
======================

[](#dystore-stripe-adapter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/550e003277cc39013ef278531ceacd8ddcf39c551af2f68afe864543022861e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64797374637a2f647973746f72652d7374726970652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dystcz/dystore-stripe)[![Total Downloads](https://camo.githubusercontent.com/a41a8df86b9399b594da7053e1353e47c8c0ae30e3abf7fa0a071669a9676023/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64797374637a2f647973746f72652d7374726970652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dystcz/dystore-stripe)[![Tests](https://github.com/dystcz/dystore/actions/workflows/tests.yaml/badge.svg)](https://github.com/dystcz/dystore/actions/workflows/tests.yaml)

Important

To open issues or contribute, please navigate to the [main repository](https://github.com/dystcz/dystore). This is a subtree split of [dystore](https://github.com/dystcz/dystore) monorepo.

This package provides a Stripe payment adapter for [Dystore API](https://github.com/dystcz/dystore-api). It can authorize your payments and handle incoming Stripe webhooks.

Getting started
---------------

[](#getting-started)

Should be as easy as:

1. Install the package
2. Fill in your env variables
3. Accept payments

### Installation

[](#installation)

You can install the package via composer:

```
composer require dystcz/dystore-stripe
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Dystore\Stripe\StripeServiceProvider" --tag="dystore.stripe"
```

This will publish two configuration files:

1. `config/dystore/stripe.php` - contains the payment adapter configuration
2. `config/stripe-webhook.php` - contains the webhook configuration

### Configuration

[](#configuration)

#### Setting up the webhooks

[](#setting-up-the-webhooks)

You can configure the Stripe webhooks in the `config/stripe-webhook.php` file. This package builds on top of Spatie's [laravel-stripe-webhooks](https://github.com/spatie/laravel-stripe-webhooks?tab=readme-ov-file)package, so you can use the same configuration. For more configuration options, please refer to the [documentation](https://github.com/spatie/laravel-stripe-webhooks?tab=readme-ov-file)of the package.

#### Setting up environment variables

[](#setting-up-environment-variables)

Do not forget to fill in your `.env` file with the following variables:

```
STRIPE_PUBLIC_KEY=pk_live_...
STRIPE_SECRET_KEY=sk_live_...
STRIPE_WEBHOOK_SECRET=whsec_...
STRIPE_WEBHOOK_CONNECTION=redis
STRIPE_WEBHOOK_QUEUE=priority
STRIPE_SIGNATURE_VERIFY=true
```

### Stripe events and their webhook handlers

[](#stripe-events-and-their-webhook-handlers)

Here is a list of Stripe events which are currently handled by this package. You can easily add your own handlers and register them in the `config/stripe-webhook.php` file.

You can add a couple of useful methods to your handlers by extending the `WebhookHandler` class.

#### Currently handled events

[](#currently-handled-events)

EventWebhook handler classDescription`payment_intent.succeeded``HandlePaymentIntentSucceeded`Dispatches `OrderPaymentCanceled` event.`payment_intent.payment_failed``HandlePaymentIntentFailed`Dispatches `OrderPaymentFailed` event.`payment_intent.canceled``HandlePaymentIntentCanceled`Authorizes the payment via `AuthorizeStripePayment` class which dispatches the `OrderPaymentSuccessful`.You can listen to these and [others](https://github.com/dystcz/dystore-api/tree/26c9dedeecddf89a9d2aed418cf965525e393e40/src/Domain/Orders/Events)events in your application and handle them accordingly.

Note

All other events are handled by `HandleOtherEvent` class which does nothing by default, but you can easily swap the default handler for your own in the config.

### Advanced usage

[](#advanced-usage)

If you ever need to implement custom logic, you can use the methods listed below.

```
$payment = App::make(StripePaymentAdapter::class);

// Get payment driver
$payment->getDriver();

// Get payment type
$payment->getType();

// Create a payment intent
$payment->createIntent($cart)

// Handle a webhook (validate and authorize payment)
$payment->handleWebhook($request)
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Jakub Theimer](https://github.com/dystcz)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance85

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 79.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~30 days

Recently: every ~52 days

Total

31

Last Release

62d ago

Major Versions

0.8.4 → 1.0.0-alpha.12024-05-01

0.8.5 → 1.0.12025-03-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/581117abe0f4b50c0ed62f6072f506571a3be5351311f447f10e120c24e2ddca?d=identicon)[theimerj](/maintainers/theimerj)

---

Top Contributors

[![repl6669](https://avatars.githubusercontent.com/u/5587309?v=4)](https://github.com/repl6669 "repl6669 (167 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (30 commits)")[![lorinczdev](https://avatars.githubusercontent.com/u/34649992?v=4)](https://github.com/lorinczdev "lorinczdev (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

dystorelaravellunarstripephplaravelstripelunardystopiadystore

### Embed Badge

![Health badge](/badges/dystcz-dystore-stripe/health.svg)

```
[![Health](https://phpackages.com/badges/dystcz-dystore-stripe/health.svg)](https://phpackages.com/packages/dystcz-dystore-stripe)
```

###  Alternatives

[cartalyst/stripe-laravel

Laravel 11 integration for the Cartalyst Stripe package.

3382.6M9](/packages/cartalyst-stripe-laravel)[dystcz/dystore

Collection of ecommerce packages built on top of Lunar and Laravel JSON:API.

121.5k](/packages/dystcz-dystore)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[tomatophp/filament-payments

Manage your payments inside FilamentPHP app with multi payment gateway integration

542.3k](/packages/tomatophp-filament-payments)[dystcz/lunar-api

Dystore API layer for Lunar e-commerce package

411.1k3](/packages/dystcz-lunar-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
