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

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

arckinteractive/stripe
======================

This plugin provides an Elgg API layer for interfacing with Stripe

2.1.7(8y ago)51264GPL-2.0PHPPHP &gt;=5.3.3

Since Jun 12Pushed 7y ago12 watchersCompare

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

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

Stripe
======

[](#stripe)

Stripe.com API Layer for Elgg

The plugin is intended primarily for developers, who are implementing a payments flow.

Intro
-----

[](#intro)

This plugin implements an API Layer for interfacing with Elgg. It implements most common methods, including creating and updating customers, creating charges, adding and removing cards etc.

The goal is to provide a uniform API that works with Elgg's entity architecture, this includes maintaining references between, for example, Elgg users and Stripe customers.

The plugin also provides a UI for users to manage their payment methods, view their transaction history, etc.

Architecture is such as to avoid storing data in Elgg, where possible, so your site stays PCI compliant, while entertaining broad e-commerce possibilities.

The plugin provides API for creating/updating/deleting/viewing:

- Customers
- Cards
- Charges
- Plans
- Subscriptions
- Invoices

Additional features, such as Stripe Connect or transfers, can/might be implemented in separate plugins.

Security Considerations
-----------------------

[](#security-considerations)

It is the responsibility of the site owner to enable SSL encryption, as well as taking additional precautions to protect users from unauthorized access to their personal data (even though it is not stored in the Elgg database, some information will made available to viewers in real-time) as well as from unauthorized payments for goods on the site (in case the credit card is stored with the customer entity).

It is perhaps a good idea to ensure that user sessions time out regularly, or that stripe-related pages are password protected.

Webhooks
--------

[](#webhooks)

To ensure that Elgg receives some crucial updates, please set up your Stripe webhooks as follows:

**Testing**[https://YOUR-SITE/services/api/rest/json?method=stripe.webhooks&amp;environment=sandbox](https://YOUR-SITE/services/api/rest/json?method=stripe.webhooks&environment=sandbox)

**Live**[https://YOUR-SITE/services/api/rest/json?method=stripe.webhooks&amp;environment=production](https://YOUR-SITE/services/api/rest/json?method=stripe.webhooks&environment=production)

Once you have set up the webhooks, you can add handlers for `$stripe_event_type, 'stripe.events'`plugin hook in Elgg to implement additional logic. Your callback function will receive a Stripe event object and an environment descriptor.

A list of Stripe events can be found here: [https://stripe.com/docs/api#event\_types](https://stripe.com/docs/api#event_types)

Customers
---------

[](#customers)

Customers are created automagically, whenever you pass an email, user guid or user entity to the API.

Whenever a user is registered with an email has a Stripe customer account, Stripe customer will be mapped to that user and the transaction history will be available to the user.

### Example: adding a card

[](#example-adding-a-card)

```
$token = get_input('token'); // this would have been generated by stripe.js
$user = elgg_get_logged_in_user_entity();

$client = new StripeClient();
$client->createCard($user, $token);
```

### Example: creating a charge

[](#example-creating-a-charge)

```
$user_guid = elgg_get_logged_in_user_guid();

$charge = array(
	'amount' => 12545, // amount in cents
	'currency' => 'USD',
	'card' => $card_id, // optional if the customer has a card on file
	'metadata' => array(
		'cart_guid' => $cart_guid,
		'shop_guid' => $shop_guid,
	),
);

$client = new StripeClient();
$client->createCharge($user_guid, $charge);
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 59.3% 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 ~135 days

Recently: every ~60 days

Total

10

Last Release

3136d ago

Major Versions

v1.0 → 2.1.02017-02-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/55be67f1fa6d239b8d4b8e2bf01947571c33373a664a4f8b88433177e54ad64e?d=identicon)[beck24](/maintainers/beck24)

---

Top Contributors

[![beck24](https://avatars.githubusercontent.com/u/738363?v=4)](https://github.com/beck24 "beck24 (16 commits)")[![hypeJunction](https://avatars.githubusercontent.com/u/1202761?v=4)](https://github.com/hypeJunction "hypeJunction (11 commits)")

---

Tags

pluginstripeelggpayments

### Embed Badge

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

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

###  Alternatives

[chronon/stripe

A CakePHP 2.x Stripe Payment Processing Component.

4246.6k](/packages/chronon-stripe)[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)[tomatophp/filament-payments

Manage your payments inside FilamentPHP app with multi payment gateway integration

542.3k](/packages/tomatophp-filament-payments)[tatter/stripe

Stripe SDK integration for CodeIgniter 4

115.3k](/packages/tatter-stripe)

PHPackages © 2026

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