PHPackages                             schoolaid/powertranz - 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. schoolaid/powertranz

ActiveLibrary[Payment Processing](/categories/payments)

schoolaid/powertranz
====================

Powertranz Client

0.1.14(2w ago)02061MITPHPPHP &gt;=8.0

Since Sep 12Pushed 2w ago1 watchersCompare

[ Source](https://github.com/schoolaid/powertranz)[ Packagist](https://packagist.org/packages/schoolaid/powertranz)[ RSS](/packages/schoolaid-powertranz/feed)WikiDiscussions main Synced today

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

Powertranz Client
=================

[](#powertranz-client)

This package is a minimal client for BAC Powertranz, now it's just a simple client.

Actions supported
-----------------

[](#actions-supported)

✅ Alive

```
use SchoolAid\Powertranz\Actions\Alive;

$response = Alive::getInstance()->submit()
```

✅ Capture

```
use SchoolAid\Powertranz\Requests\PowertranzBody;
use SchoolAid\Powertranz\Actions\Capture;

$body = PowertranzBody::capturePowertranzBody($transactionIdentifier, $amount, $externalIdentifier)
$response = Capture::getInstance()->setBody($body)->submit()
```

✅ Refund
Used to rollback a transaction.

```
use SchoolAid\Powertranz\Requests\PowertranzBody;
use SchoolAid\Powertranz\Actions\Refund;

$body = PowertranzBody::refundPowertranzBody($transactionIdentifier, $amount, $externalIdentifier)
$response = Refund::getInstance()->setBody($body)->submit()
```

✅ Revert
Used to rollback an authorization, on the api as: api/void

```
use SchoolAid\Powertranz\Requests\PowertranzBody;
use SchoolAid\Powertranz\Actions\Revert;

$body = PowertranzBody::voidPowertranzBody($transactionIdentifier, $cardId)
$response = Revert::getInstance()->setBody($body)->submit()
```

✅ Sale

```
use SchoolAid\Powertranz\Requests\PowertranzBody;
use SchoolAid\Powertranz\Actions\Sale;

$body = PowertranzBody::powertranzBody(
    $transactionId,
    $orderId,
    $cardPan,
    $cardCvv, //yyMM format
    $cardExpiration,
    $cardName,
    $billingAddress
)
$response = Sale::getInstance()->setBody($body)->submit()
```

✅ SPIAuth

```
use SchoolAid\Powertranz\Requests\PowertranzBody;
use SchoolAid\Powertranz\Actions\SPIAuth;

$body = PowertranzBody::powertranzBody(
    $transactionId,
    $orderId,
    $cardPan,
    $cardCvv, //yyMM format
    $cardExpiration,
    $cardName,
    $billingAddress
)
$response = SPIAuth::getInstance()->setBody($body)->submit()
```

✅ SPIPayment

```
use SchoolAid\Powertranz\Requests\PowertranzBody;
use SchoolAid\Powertranz\Actions\SPIPayment;

$spiToken = '...';
$response = SPIPayment::getInstance()->setToken($token)->submit()
```

✅ SPISale

```
use SchoolAid\Powertranz\Requests\PowertranzBody;
use SchoolAid\Powertranz\Actions\SPISale;

$body = PowertranzBody::powertranzBody(
    $transactionId,
    $orderId,
    $cardPan,
    $cardCvv, //yyMM format
    $cardExpiration,
    $cardName,
    $billingAddress
)
$response = SPISale::getInstance()->setBody($body)->submit()
```

✅ SPIRiskMgmt

```
use SchoolAid\Powertranz\Requests\PowertranzBody;
use SchoolAid\Powertranz\Actions\SPISale;

$body = PowertranzBody::riskMgmtPowertranzBody(
    $transactionId,
    $cardPan,
    $cardCvv, //yyMM format
    $cardExpiration,
    $cardName
)
$response = SPIRiskMgmt::getInstance()->setBody($body)->submit()
```

Other ways to build the body
----------------------------

[](#other-ways-to-build-the-body)

PowertranzBody class provides another way to generate sales body from other ways.

```
use Schoolaid\Powertranz\Entities\PowertranzCreditCard;
use SchoolAid\Powertranz\Requests\PowertranzBody;

$cc = new PowertranzCreditCard($id, $pan, $cvv, $expDate, $name, ?$billingAddress)

$body = PowertranzBody::fromCreditCard($cc);
$voidBody = PowertranzBody::fromCreditCard($cc, $transactionId, true);
```

Env variables to set:
---------------------

[](#env-variables-to-set)

```
POWERTRANZ_URL=https://staging.ptranz.com/
POWERTRANZ_ID=0000000
POWERTRANZ_PASSWORD=xxxxxxxx
POWERTRANZ_GATEWAY_KEY=xxxxxxx //set only if provided
POWERTRANZ_CALLBACK=https://localhost/authorize

```

###  Health Score

45

↑

FairBetter than 91% of packages

Maintenance98

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.2% 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 ~78 days

Recently: every ~233 days

Total

14

Last Release

14d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fee65f191de88ede88003877a230678d02ff64f9cb5e70f46814c28641c6d2e1?d=identicon)[hsingli](/maintainers/hsingli)

---

Top Contributors

[![hlca](https://avatars.githubusercontent.com/u/1301913?v=4)](https://github.com/hlca "hlca (15 commits)")[![jgalindosl](https://avatars.githubusercontent.com/u/66330140?v=4)](https://github.com/jgalindosl "jgalindosl (4 commits)")[![vchete](https://avatars.githubusercontent.com/u/60408064?v=4)](https://github.com/vchete "vchete (2 commits)")[![evtray](https://avatars.githubusercontent.com/u/68375021?v=4)](https://github.com/evtray "evtray (1 commits)")

### Embed Badge

![Health badge](/badges/schoolaid-powertranz/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[firefly-iii/data-importer

Firefly III Data Import Tool.

8035.8k](/packages/firefly-iii-data-importer)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)

PHPackages © 2026

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