PHPackages                             aggreg82r/pay - 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. aggreg82r/pay

ActivePackage[Payment Processing](/categories/payments)

aggreg82r/pay
=============

Aggreg82r pay package

v1.0.0(4y ago)12MITPHPPHP ^7.3|^8.0

Since Feb 25Pushed 4y ago2 watchersCompare

[ Source](https://github.com/jsdecena/aggrepay)[ Packagist](https://packagist.org/packages/aggreg82r/pay)[ RSS](/packages/aggreg82r-pay/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Aggreg82r Pay
=============

[](#aggreg82r-pay)

PHP SDK for calling the checkout method of [Aggreg82r.com](https://aggreg82r.com)

Requirements
------------

[](#requirements)

- cURL
- PHP &gt;7.3

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

[](#installation)

```
composer require aggreg82r/pay

```

Usage
-----

[](#usage)

1. Create your form

```

    Pay with Stripe

```

### Required fields

[](#required-fields)

- payment\_gateway (string) - Intended payment gateway
- recurring (boolean) - If this is a recurring payment of not
- reference (string) - Your reference code for this transaction, this is important to map out in your system the customer who made for this transaction
- name (string) - The description in the checkout form of the chosen payment gateway
- amount (string) - The total amount
- currency (string) - Intended currency to bill your customer

2. Grab the form post data and do **CHECKOUT**

```
// Get the form POST data
$postData = $request->all(); // Important: Sanitize your data

// Initialize your checkout
$checkout = new \Aggreg82r\Pay\Checkout(
    'https://api.aggreg82r.com',
    '30aab829-ee2f-49c0-be87-a2149b382c7e', // API KEY
    '4c3e523d-1f78-4a97-8535-49e36763d0f5' // API SECRET
);

// get your api key and secret in https://aggreg82r.com

$checkout->now($postData);
// This will redirect to the intended payment gateway checkout page
```

3. Once your customer has filled their credit card details, it will go back to your `success_url` you defined in your credential dashboard at

---

Not PHP? No Problem. Try curl
=============================

[](#not-php-no-problem-try-curl)

1. Your backend should request for the token first and save it to be used in Step 2.

```
curl --request POST \
  --url https://api.aggreg82r.com/customer/auth \
  --header 'Content-Type: application/json' \
  --data '{
        "api_key": "",
        "api_secret": "",
        "grant_type": "client_credentials"
    }'

```

2. Your html form above should post in your backend. Then, once you collected the data from the frontend post it to aggreg82r.com

```
curl --request POST \
  --url https://api.aggreg82r.com/customer/checkout \
  --header 'Authorization: Bearer ' \
  --header 'Content-Type: application/json' \
  --data '{
        "payment_gateway": "stripe",
        "recurring": "false",
        "reference": "your-reference-string",
        "name": "Your total cart amount from example.com",
        "amount": "500.45",
        "currency": "USD"
    }'

```

3. Done.

> This will redirect to the intended payment gateway for your customer to input their credit card number. Once they have finished, they will be redirected back to the `success_url` you set in your credential dashboard at

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

1589d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2285625?v=4)[Jeff Decena](/maintainers/jsdecena)[@jsdecena](https://github.com/jsdecena)

---

Top Contributors

[![jsdecena](https://avatars.githubusercontent.com/u/2285625?v=4)](https://github.com/jsdecena "jsdecena (5 commits)")

---

Tags

phppackageaggreg82r

### Embed Badge

![Health badge](/badges/aggreg82r-pay/health.svg)

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

###  Alternatives

[cartalyst/stripe-laravel

Laravel 11 integration for the Cartalyst Stripe package.

3462.7M9](/packages/cartalyst-stripe-laravel)[yandex-money/yandex-money-sdk-php

Yandex.Money API SDK for PHP

105168.9k2](/packages/yandex-money-yandex-money-sdk-php)[cryptonator/merchant-php-sdk

Cryptonator.com Merchant API SDK for PHP

2714.4k](/packages/cryptonator-merchant-php-sdk)

PHPackages © 2026

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