PHPackages                             adipasanta/omnipay-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. adipasanta/omnipay-stripe

ActiveLibrary[Payment Processing](/categories/payments)

adipasanta/omnipay-stripe
=========================

Stripe driver for the Omnipay payment processing library

V2.4.7(8y ago)015MITPHP

Since Nov 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/adipasanta/omnipay-stripe)[ Packagist](https://packagist.org/packages/adipasanta/omnipay-stripe)[ Docs](https://github.com/thephpleague/omnipay-stripe)[ RSS](/packages/adipasanta-omnipay-stripe/feed)WikiDiscussions master Synced 2mo ago

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

Omnipay: Stripe
===============

[](#omnipay-stripe)

**Stripe driver for the Omnipay PHP payment processing library**

[![Build Status](https://camo.githubusercontent.com/ce96e74ce7c892d03e56fad5a6a7b647ef95c66c4e9904e292e0da1c4343ae23/68747470733a2f2f7472617669732d63692e6f72672f7468657068706c65616775652f6f6d6e697061792d7374726970652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/thephpleague/omnipay-stripe)[![Latest Stable Version](https://camo.githubusercontent.com/ab33e4ec3cd51f508fedad6561cc9e64eb8242d8333d1ee88e27a136460c1fa8/68747470733a2f2f706f7365722e707567782e6f72672f6f6d6e697061792f7374726970652f76657273696f6e2e706e67)](https://packagist.org/packages/omnipay/stripe)[![Total Downloads](https://camo.githubusercontent.com/7463f5019f3756d572cb17d62133592abfef2283a2299e8a103a56ba5defe545/68747470733a2f2f706f7365722e707567782e6f72672f6f6d6e697061792f7374726970652f642f746f74616c2e706e67)](https://packagist.org/packages/omnipay/stripe)

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Stripe support for Omnipay.

Installation
------------

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "omnipay/stripe": "~2.0"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

Basic Usage
-----------

[](#basic-usage)

The following gateways are provided by this package:

- [Stripe](https://stripe.com/)

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)repository.

### Stripe.js

[](#stripejs)

The Stripe integration is fairly straight forward. Essentially you just pass a `token` field through to Stripe instead of the regular credit card data.

Start by following the standard Stripe JS guide here:

After that you will have a `stripeToken` field which will be submitted to your server. Simply pass this through to the gateway as `token`, instead of the usual `card` array:

```
        $token = $_POST['stripeToken'];

        $response = $gateway->purchase([
            'amount' => '10.00',
            'currency' => 'USD',
            'token' => $token,
        ])->send();
```

### Stripe Connect

[](#stripe-connect)

Stripe connect applications can charge an additional fee on top of Stripe's fees for charges they make on behalf of their users. To do this you need to specify an additional `transactionFee` parameter as part of an authorize or purchase request.

When a charge is refunded the transaction fee is refunded with an amount proportional to the amount of the charge refunded and by default this will come from your connected user's Stripe account effectively leaving them out of pocket. To refund from your (the applications) Stripe account instead you can pass a `refundApplicationFee` parameter with a boolean value of true as part of a refund request.

Note: making requests with Stripe Connect specific parameters can only be made using the OAuth access token you received as part of the authorization process. Read more on Stripe Connect [here](https://stripe.com/docs/connect).

Test Mode
---------

[](#test-mode)

Stripe accounts have test-mode API keys as well as live-mode API keys. These keys can be active at the same time. Data created with test-mode credentials will never hit the credit card networks and will never cost anyone money.

Unlike some gateways, there is no test mode endpoint separate to the live mode endpoint, the Stripe API endpoint is the same for test and for live.

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release announcements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/thephpleague/omnipay-stripe/issues), or better yet, fork the library and submit a pull request.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~78 days

Recently: every ~15 days

Total

18

Last Release

3224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fbfbf00f2070ba693b8e4627aa602b98cf430212711e920701ce5bb45ba905c?d=identicon)[adipasanta](/maintainers/adipasanta)

---

Top Contributors

[![delatbabel](https://avatars.githubusercontent.com/u/2335362?v=4)](https://github.com/delatbabel "delatbabel (66 commits)")[![amacneil](https://avatars.githubusercontent.com/u/637671?v=4)](https://github.com/amacneil "amacneil (63 commits)")[![wellingguzman](https://avatars.githubusercontent.com/u/1531291?v=4)](https://github.com/wellingguzman "wellingguzman (34 commits)")[![mikealmond](https://avatars.githubusercontent.com/u/600744?v=4)](https://github.com/mikealmond "mikealmond (18 commits)")[![pedro-stanaka](https://avatars.githubusercontent.com/u/2609731?v=4)](https://github.com/pedro-stanaka "pedro-stanaka (10 commits)")[![pilot](https://avatars.githubusercontent.com/u/28564?v=4)](https://github.com/pilot "pilot (9 commits)")[![greydnls](https://avatars.githubusercontent.com/u/1276798?v=4)](https://github.com/greydnls "greydnls (9 commits)")[![cfreear](https://avatars.githubusercontent.com/u/619726?v=4)](https://github.com/cfreear "cfreear (5 commits)")[![dizda](https://avatars.githubusercontent.com/u/1245245?v=4)](https://github.com/dizda "dizda (3 commits)")[![sudiptpa](https://avatars.githubusercontent.com/u/7222620?v=4)](https://github.com/sudiptpa "sudiptpa (3 commits)")[![jsampedro77](https://avatars.githubusercontent.com/u/1857630?v=4)](https://github.com/jsampedro77 "jsampedro77 (2 commits)")[![w3guy](https://avatars.githubusercontent.com/u/4140659?v=4)](https://github.com/w3guy "w3guy (2 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (2 commits)")[![aperdomo](https://avatars.githubusercontent.com/u/3967712?v=4)](https://github.com/aperdomo "aperdomo (2 commits)")[![lozcalver](https://avatars.githubusercontent.com/u/1655548?v=4)](https://github.com/lozcalver "lozcalver (1 commits)")[![adipasanta](https://avatars.githubusercontent.com/u/11152691?v=4)](https://github.com/adipasanta "adipasanta (1 commits)")[![CaptainQuirk](https://avatars.githubusercontent.com/u/993420?v=4)](https://github.com/CaptainQuirk "CaptainQuirk (1 commits)")[![drewm](https://avatars.githubusercontent.com/u/225402?v=4)](https://github.com/drewm "drewm (1 commits)")[![gadelkareem](https://avatars.githubusercontent.com/u/1441127?v=4)](https://github.com/gadelkareem "gadelkareem (1 commits)")[![laoneo](https://avatars.githubusercontent.com/u/251072?v=4)](https://github.com/laoneo "laoneo (1 commits)")

---

Tags

stripepaymentgatewaypaymerchantomnipay

### Embed Badge

![Health badge](/badges/adipasanta-omnipay-stripe/health.svg)

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

###  Alternatives

[omnipay/stripe

Stripe driver for the Omnipay payment processing library

1915.6M34](/packages/omnipay-stripe)[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)[sudiptpa/omnipay-nabtransact

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1017.2k](/packages/sudiptpa-omnipay-nabtransact)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

154.6k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

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