PHPackages                             hakito/cakephp-stripe-payment-intents-plugin - 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. hakito/cakephp-stripe-payment-intents-plugin

ActiveCakephp-plugin[Payment Processing](/categories/payments)

hakito/cakephp-stripe-payment-intents-plugin
============================================

CakePHP Plugin for Stripe Payment Intents

v5.0(2y ago)11882GPL-2.0PHPCI failing

Since Nov 12Pushed 2y ago2 watchersCompare

[ Source](https://github.com/hakito/CakePHP-StripePaymentIntents-Plugin)[ Packagist](https://packagist.org/packages/hakito/cakephp-stripe-payment-intents-plugin)[ Docs](https://github.com/hakito/CakePHP-StripePaymentIntents-Plugin)[ RSS](/packages/hakito-cakephp-stripe-payment-intents-plugin/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/bc7b5a7cfd20c90e09030bc1d0f09ea7a72d5faa4aa10446a3014caf1d0228f7/68747470733a2f2f6170702e7472617669732d63692e636f6d2f68616b69746f2f43616b655048502d5374726970655061796d656e74496e74656e74732d506c7567696e2e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/hakito/CakePHP-StripePaymentIntents-Plugin)[![Latest Stable Version](https://camo.githubusercontent.com/cb79ed9d63bf538c099e7c2bee29270914da9f4127e33c5d0208c8423d291b36/68747470733a2f2f706f7365722e707567782e6f72672f68616b69746f2f63616b657068702d7374726970652d7061796d656e742d696e74656e74732d706c7567696e2f762f737461626c65)](https://packagist.org/packages/hakito/cakephp-stripe-payment-intents-plugin)[![Latest Unstable Version](https://camo.githubusercontent.com/c6afc97d092ea934285e62b0662fe45ce2287ad33012466794904e785564fa0b/68747470733a2f2f706f7365722e707567782e6f72672f68616b69746f2f63616b657068702d7374726970652d7061796d656e742d696e74656e74732d706c7567696e2f762f756e737461626c65)](https://packagist.org/packages/hakito/cakephp-stripe-payment-intents-plugin)[![License](https://camo.githubusercontent.com/2a3b04a766884faf2fe875d3eefb8bf46ba1184e170d9466c3aa05f59acb7fbd/68747470733a2f2f706f7365722e707567782e6f72672f68616b69746f2f63616b657068702d7374726970652d7061796d656e742d696e74656e74732d706c7567696e2f6c6963656e7365)](https://packagist.org/packages/hakito/cakephp-stripe-payment-intents-plugin)

CakePHP-StripePaymentIntents-Plugin
===================================

[](#cakephp-stripepaymentintents-plugin)

CakePHP 4.x plugin for Stripe Payment Intents

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

[](#installation)

---

### Using composer

[](#using-composer)

If you are using composer simply add it using the following command:

```
composer require hakito/cakephp-stripe-payment-intents-plugin
```

### Without composer

[](#without-composer)

Download the plugin to app/Plugin/StripePaymentIntents.

### Load the plugin

[](#load-the-plugin)

Load the Plugin in your Application.php

```
public function bootstrap(): void
{
    // Call parent to load bootstrap from files.
    parent::bootstrap();

    $this->addPlugin(\StripePaymentIntents\Plugin::class, ['routes' => true]);
}
```

Confguration
------------

[](#confguration)

Add the following config to your app.php

```
'StripePaymentIntents' => [
    'mode'=> 'test',
    'currency' => 'eur',
    'keys' => [
        'test' => [
            'secret' => 'sk_test_4eC39HqLyjWDarjtT1zdp7dc',
            'public' => 'pk_test_abc',
        ],
        'live' => [
            'secret' => 'sk_live_key',
            'public' => 'pk_live_key'
        ]
    ],
    'logging' => false,
]
```

You can also setup logging

```
'Log' =>
[
    'stripe' =>
    [
        'className' => FileLog::class,
        'path' => LOGS,
        'file' => 'stripe',
        'scopes' => ['Stripe'],
        'levels' => ['warning', 'error', 'critical', 'alert', 'emergency', 'info'],
    ],
]
```

Usage
-----

[](#usage)

In your payment handling controller:

```
// Load the component
public function initialize(): void
{
    parent::initialize();
    $this->loadComponent('StripePaymentIntents.StripePaymentIntents');
}
```

Create or retrieve a payment intent for the checkout process

```
// create new
$pi = $this->StripePaymentIntents->Create(1234, ['metadata' => ['order_id' => $orderId]]); // 12.34
// or update shopping cart
$pi = $this->StripePaymentIntents->Retrieve('pi_xyz');
```

Set the view data

```
$this->set('StripeClientSecret', $pi->client_secret);
$this->set('StripePublicKey', $this->StripePaymentIntents->GetPublicKey());
```

Implement the view behavior according to [stripe documentation](https://stripe.com/docs/payments/accept-a-payment#web-collect-card-details).

Stripe webhook events
---------------------

[](#stripe-webhook-events)

You have to handle stripe events implementing an event handler:

```
\Cake\Event\EventManager::instance()->on('StripePaymentIntents.Event',
function (\Cake\Event\Event $event, \Stripe\Event $stripeEvent)
{
    return ['handled' => true]; // If you don't set the handled flag to true
                                // the plugin will throw an exception
});
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~378 days

Total

6

Last Release

856d ago

Major Versions

v1.1 → v3.02020-06-13

v3.0 → v4.02020-06-22

v4.0.1 → v5.02024-01-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c059057edc332fe31671c634307bc2d401fb1dbbc0b5e76c1a462daeafb987a?d=identicon)[hakito](/maintainers/hakito)

---

Top Contributors

[![hakito](https://avatars.githubusercontent.com/u/320853?v=4)](https://github.com/hakito "hakito (31 commits)")

---

Tags

stripepaymentscredit-cardpayments intents

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hakito-cakephp-stripe-payment-intents-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/hakito-cakephp-stripe-payment-intents-plugin/health.svg)](https://phpackages.com/packages/hakito-cakephp-stripe-payment-intents-plugin)
```

###  Alternatives

[enupal/stripe

Allows customers sign up for recurring and one-time payments with Stripe, perfect for orders, donations, subscriptions, and events. Create simple payment forms in seconds easily without coding. For Craft CMS 3.x

3416.5k1](/packages/enupal-stripe)[chronon/stripe

A CakePHP 2.x Stripe Payment Processing Component.

4246.6k](/packages/chronon-stripe)[tomatophp/filament-payments

Manage your payments inside FilamentPHP app with multi payment gateway integration

542.3k](/packages/tomatophp-filament-payments)[renekorss/banklink

PHP banklink library to easily integrate Baltic banklinks.

3631.6k](/packages/renekorss-banklink)[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)[tatter/stripe

Stripe SDK integration for CodeIgniter 4

115.3k](/packages/tatter-stripe)

PHPackages © 2026

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