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

ActiveLibrary[Payment Processing](/categories/payments)

futureecom/omnipay-stripe
=========================

Stripe Payment Intents driver for the Omnipay payment processing library.

1.1.1(1mo ago)08MITPHPPHP ^8.3

Since Jul 15Pushed 1mo agoCompare

[ Source](https://github.com/futureecom/omnipay-stripe)[ Packagist](https://packagist.org/packages/futureecom/omnipay-stripe)[ Docs](https://www.futureecom.com)[ RSS](/packages/futureecom-omnipay-stripe/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (13)Versions (4)Used By (0)

Omnipay: Stripe Payment Intents
===============================

[](#omnipay-stripe-payment-intents)

**Stripe Payment Intents gateway for the Omnipay payment processing library**

This package implements Stripe Payment Intents support for Omnipay, backed by the official [`stripe/stripe-php`](https://github.com/stripe/stripe-php) SDK instead of the legacy Charges API used by `omnipay/stripe`.

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

[](#installation)

Install the gateway using Composer:

```
composer require futureecom/omnipay-stripe
```

Configuration
-------------

[](#configuration)

Obtain your Stripe API keys from the [Stripe Dashboard](https://dashboard.stripe.com/apikeys).

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Stripe');
$gateway->setApiKey('sk_test_...');
$gateway->setPublishableKey('pk_test_...');
$gateway->setStripeVersion('2024-06-20'); // optional API version pin
```

Test mode is determined by the secret key prefix (`sk_test_` / `sk_live_`), not a separate flag.

Supported gateway methods
-------------------------

[](#supported-gateway-methods)

MethodStripe APINotes`purchase`Payment Intents (`capture_method=automatic`)Immediate capture`authorize`Payment Intents (`capture_method=manual`)Auth-only, capture later`capture`PaymentIntent capture or Charge captureAccepts `pi_*` or legacy `ch_*` references`completePurchase`Payment IntentsUses token/source stored as `transactionReference``refund`Refunds APIPartial or full refund against charge`void`PaymentIntent cancel or full refundCancels uncaptured auth; refunds captured charge`createCard`Customers + Payment MethodsReturns legacy-shaped customer payload for platform compatibilityUsage
-----

[](#usage)

### Purchase

[](#purchase)

```
$response = $gateway->purchase([
    'amount' => '99.99',
    'currency' => 'USD',
    'paymentMethod' => 'pm_123', // preferred
    // or legacy: 'source' => 'tok_...', 'token' => 'tok_...'
])->send();

if ($response->isSuccessful()) {
    $chargeId = $response->getTransactionReference(); // ch_*
}
```

### Authorize and capture

[](#authorize-and-capture)

```
$auth = $gateway->authorize([
    'amount' => '100.00',
    'currency' => 'USD',
    'paymentMethod' => 'pm_123',
])->send();

$capture = $gateway->capture([
    'transactionReference' => $auth->getTransactionReference(),
])->send();
```

### Refund

[](#refund)

```
$response = $gateway->refund([
    'transactionReference' => 'ch_123',
    'amount' => '10.00',
    'currency' => 'USD',
])->send();
```

Payment method inputs
---------------------

[](#payment-method-inputs)

The gateway accepts, in order of precedence:

1. `paymentMethod` — `pm_*` (preferred)
2. `source` — legacy Card Element token (`tok_*`) or payment method id
3. `token` — legacy purchase param
4. `cardReference` — stored card / payment method reference

Legacy `tok_*` values are converted server-side via `PaymentMethod::create(['card' => ['token' => ...]])`.

Transaction references
----------------------

[](#transaction-references)

Successful payment/authorization responses return the **charge id** (`ch_*`) as `getTransactionReference()` so existing refunds, voids, and captures against stored references keep working.

Development
-----------

[](#development)

```
composer install
composer test
composer lint
```

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance92

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~3 days

Total

3

Last Release

40d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/547790?v=4)[futureavi](/maintainers/futureavi)[@futureavi](https://github.com/futureavi)

---

Top Contributors

[![futureecomavi](https://avatars.githubusercontent.com/u/48889697?v=4)](https://github.com/futureecomavi "futureecomavi (3 commits)")

---

Tags

stripepaymentgatewaypaymerchantomnipaypayment-intents

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[omnipay/stripe

Stripe driver for the Omnipay payment processing library

1936.7M43](/packages/omnipay-stripe)[omnipay/mollie

Mollie driver for the Omnipay payment processing library

641.9M13](/packages/omnipay-mollie)[academe/omnipay-payone

PAYONE gateway driver for the Omnipay PHP payment processing library

15177.3k](/packages/academe-omnipay-payone)[sudiptpa/omnipay-nabtransact

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

1020.8k](/packages/sudiptpa-omnipay-nabtransact)

PHPackages © 2026

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