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

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

chronon/stripe
==============

A CakePHP 2.x Stripe Payment Processing Component.

2.0.9(9y ago)4246.6k↓50%24MITPHPPHP &gt;=5.3.0

Since Apr 22Pushed 9y ago4 watchersCompare

[ Source](https://github.com/chronon/CakePHP-StripeComponent-Plugin)[ Packagist](https://packagist.org/packages/chronon/stripe)[ Docs](https://github.com/chronon/CakePHP-StripeComponent-Plugin)[ RSS](/packages/chronon-stripe/feed)WikiDiscussions master Synced 1mo ago

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

CakePHP Stripe Component
========================

[](#cakephp-stripe-component)

**NOTE:** This plugin is CakePHP 2 only and **will not be updated for CakePHP 3**. For CakePHP 3, consider checking out [Omnipay](http://omnipay.thephpleague.com/). A great introduction on how to use it with CakePHP 3 can be found in [Jose's post](http://josediazgonzalez.com/2014/12/14/processing-payments-with-cakephp-3/).

This is a simple component that interfaces a CakePHP app with Stripe's PHP API library. Pass the component an array containing at least an amount and a Stripe token id, it will attempt the charge and return an array of the fields you want.

Version 2 adds the ability to create and retrieve customers, optionally subscribing them to a recurring payment plan or just charging them.

Compatibility:
--------------

[](#compatibility)

Tested with CakePHP 2.2.x and up, though please note it's not compatible with CakePHP 3.x. The required Stripe PHP API library requires PHP 5 with cURL support and must be version 1.18.0 or below. This plugin will now work with version 2.0.0 or above without modification.

Installation:
-------------

[](#installation)

**Using [Composer](http://getcomposer.org/)/[Packagist](https://packagist.org):**

In your project `composer.json` file:

```
{
	"require": {
		"chronon/stripe": "~2.0"
	},
	"config": {
        "vendor-dir": "Vendor"
    }
}
```

This will install the plugin into `Plugin/Stripe`, and install the Stripe library (from Packagist) into your `Vendor` directory.

In your app's `Config/bootstrap.php`, import composer's autoload file:

```
