PHPackages                             hypejunction/payments - 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. hypejunction/payments

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

hypejunction/payments
=====================

Payments API for Elgg

2.0.13(8y ago)112114GPL-2.0PHPPHP &gt;=5.6

Since Mar 25Pushed 8y ago2 watchersCompare

[ Source](https://github.com/hypeJunction/Elgg-payments)[ Packagist](https://packagist.org/packages/hypejunction/payments)[ Docs](http://hypejunction.com)[ RSS](/packages/hypejunction-payments/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (18)Used By (4)

Payments and sales API for Elgg
===============================

[](#payments-and-sales-api-for-elgg)

[![Elgg 2.3](https://camo.githubusercontent.com/8452daaef3ea7320843e9a5473e44a80e23ec99b34525f2c9bbf8c83ccad0cd6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e332d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/8452daaef3ea7320843e9a5473e44a80e23ec99b34525f2c9bbf8c83ccad0cd6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e332d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

Features
--------

[](#features)

- Standardized API for handling payments and product sales
- Interface for logging and refunding payments

Usage
-----

[](#usage)

### New payment

[](#new-payment)

```
namespace hypeJunction\Payments;

// First, we create an itemized order/invoice
$order = new Order();
$order->setCurrency('EUR');

// Add a new product
$order->add($product, 2);

// Add additional fees and charges
$shipping = Amount::fromString('25.25', 'EUR');
$charges[] = new ShippingFee('shipping', 0, $shipping);

$charges[] = new ProcessingFee('paypal_fee', 3.9);

$order->setCharges($charges);

$address = new Address();
$address->street_address = 'Some street 25';
// add other address parts
$address->country_code = 'CZ';

$order->setShippingAddress($address);

// Now create a transaction
$transaction = new Transaction();
$transaction->setOrder($order);
$transaction->setPaymentMethod('paypal');

// Be sure to correctly set the owner and container and access id
// to ensure that both the merchant and the customer have access
// to the transaction entity
$transaction->owner_guid = $payer->guid;
$transaction->container_guid = $payee->guid;

// You can use access_grant to give access to the merchant,
// or create a new acccess collection that contains both the payer and the payee
$transaction->access_id = ACCESS_PRIVATE;

$transaction->save();

// Instantiate a gateway of choice
$gateway = new \hypeJunction\PayPal\API\Adapter();

// What you do with response may depend on where you are executing
// this code. From an action file, you can just return the $response.
$response = $adapter->pay($transaction);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 93.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 ~30 days

Total

17

Last Release

3217d ago

Major Versions

1.x-dev → 2.0.02016-11-15

PHP version history (2 changes)1.0.0PHP ~5.5

2.0.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/5071b1cd852e094b3f564962a625e04c227adc73af30c5b46b243ab8f20154a7?d=identicon)[hypeJunction](/maintainers/hypeJunction)

---

Top Contributors

[![hypeJunction](https://avatars.githubusercontent.com/u/1202761?v=4)](https://github.com/hypeJunction "hypeJunction (42 commits)")[![juho-jaakkola](https://avatars.githubusercontent.com/u/883920?v=4)](https://github.com/juho-jaakkola "juho-jaakkola (3 commits)")

---

Tags

pluginelggpayments

### Embed Badge

![Health badge](/badges/hypejunction-payments/health.svg)

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

###  Alternatives

[chronon/stripe

A CakePHP 2.x Stripe Payment Processing Component.

4246.6k](/packages/chronon-stripe)

PHPackages © 2026

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