PHPackages                             marqant-lab/marqant-pay-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. marqant-lab/marqant-pay-stripe

ActivePackage[Payment Processing](/categories/payments)

marqant-lab/marqant-pay-stripe
==============================

Stripe payment provider for marqant/marqant-pay package.

v0.1.0(5y ago)2372MITPHP

Since Apr 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/marqant-lab/marqant-pay-stripe)[ Packagist](https://packagist.org/packages/marqant-lab/marqant-pay-stripe)[ RSS](/packages/marqant-lab-marqant-pay-stripe/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (39)Used By (0)

Marqant Pay Stripe Gateway
==========================

[](#marqant-pay-stripe-gateway)

This package makes the stripe payment provider available for the marqant/marqant-pay package.

Instalation
-----------

[](#instalation)

You can just require this package through composer as follows.

```
composer require marqant-lab/marqant-pay-stripe
```

Then you have to add the service infomration to the `services.php` configuration file of Laravel. To do so, update the configuration file as shown below.

```
return [
    // other services
    // ...

    'stripe' => [
        'key'    => env('STRIPE_KEY'),
        'secret' => env('STRIPE_SECRET'),
    ],
];
```

Next you have to add the environment variables. Go to your stripe dashboard and get your stripe key and secret, so you can add it to your `.env` file.

```
STRIPE_KEY=pk_test_iLokikJOvEuI2HlWgH4olf3P
STRIPE_SECRET=sk_test_BQokikJOvBiI2HlWgH4olfQ2
```

Now go ahead and enable the payment provider in the `marqant-pay.php` configuration file.

```
return [
    /*
     |--------------------------------------------------------------------------
     | Gateways
     |--------------------------------------------------------------------------
     |
     | In this section you can define all payment gateways that you need for
     | your project.
     |
     */

    'gateways' => [
        'stripe' => \Marqant\MarqantPayStripe\StripePaymentGateway::class,
    ],
];
```

Next you will need to add the fields for stripe on the billables you setup in the `marqant-pay` setup. So run the following for each billable model that you have setup (or will setup).

```
php artisan marqant-pay:migrations:stripe
```

If you are using the [marqant-lab/marqant-pay-subscriptions](https://github.com/marqant-lab/marqant-pay-subscriptions) package to enable subscriptions, then you will need to add the `--subscriptions` flag to the choosen command.

```
php artisan marqant-pay:migrations:stripe --subscriptions
```

Now you can run the migrations as usual.

```
php artisan migrate
```

And that's it, you should be good to go now.

\###WebHooks:

We using `spatie/laravel-stripe-webhooks` package for stripe webhooks.

\#####Configuration:

Add `STRIPE_WEBHOOK_SECRET` to your .env

You can find the secret used at the webhook configuration settings on the [Stripe dashboard](https://dashboard.stripe.com/account/webhooks).

run `$ php artisan migrate` if you don't do it before.

Go to your `your_project/app/Http/Middleware/VerifyCsrfToken.php` and add this row:

```
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        '/stripe/webhook'
    ];
```

Finally, take care of the routing:
At the Stripe dashboard you must configure at what url Stripe webhooks should hit your app.

You should set it up to '/stripe/webhook'.

Example of Endpoint URL:

Available stripe events:

- payment\_intent.succeeded
- invoice.payment\_succeeded
- payment\_intent.payment\_failed
- charge.failed (not completed)

For 'payment\_intent.payment\_failed' you should set configs `'marqant-pay.payment_urls.base_url'` and `'marqant-pay.payment_urls.payment_sub_url'`,
description at config file.
You need also look at `'marqant-pay.support_emails'` config.

You can also add to project/resources/lang these keys for translate:

- "Here"
- "Payment failed."
- "Requires payment method."
- "You needs to update your payment method in the"
    Don't forget: it should be json file.

Example resources/lang/en.json:

```
{
  "Payment failed.": "Payment failed translation."
}
```

They are used at emails for `'payment_intent.payment_failed'` event

That's all you need

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.8% 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 ~13 days

Recently: every ~39 days

Total

24

Last Release

1909d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13aba1f5a025bc1217e8a41a21ca1db8e20e45373882a4e9e8c2f366bfcfe9c4?d=identicon)[marqant-lab](/maintainers/marqant-lab)

---

Top Contributors

[![DmitrySidorenkoShim](https://avatars.githubusercontent.com/u/8822805?v=4)](https://github.com/DmitrySidorenkoShim "DmitrySidorenkoShim (28 commits)")[![tjventurini](https://avatars.githubusercontent.com/u/4708070?v=4)](https://github.com/tjventurini "tjventurini (5 commits)")

### Embed Badge

![Health badge](/badges/marqant-lab-marqant-pay-stripe/health.svg)

```
[![Health](https://phpackages.com/badges/marqant-lab-marqant-pay-stripe/health.svg)](https://phpackages.com/packages/marqant-lab-marqant-pay-stripe)
```

###  Alternatives

[spatie/laravel-stripe-webhooks

Handle stripe webhooks in a Laravel application

5213.1M8](/packages/spatie-laravel-stripe-webhooks)[tightenco/nova-stripe

A tool to create a quick Stripe dashboard in your Laravel Nova admin panels

110308.9k](/packages/tightenco-nova-stripe)[duncanmcclean/simple-commerce

A simple, yet powerful e-commerce addon for Statamic.

16313.2k2](/packages/duncanmcclean-simple-commerce)[flux-se/payum-stripe

Payum Stripe gateways

29407.5k4](/packages/flux-se-payum-stripe)[payum/stripe

The Payum extension. It provides Stripe payment integration.

22573.1k3](/packages/payum-stripe)[craftcms/commerce-stripe

Stripe integration for Craft Commerce 5.0+

32157.4k3](/packages/craftcms-commerce-stripe)

PHPackages © 2026

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