PHPackages                             shawnley/altapay-php-api - 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. shawnley/altapay-php-api

ActiveLibrary[Payment Processing](/categories/payments)

shawnley/altapay-php-api
========================

Altapay PHP API

v1.5.4(8y ago)02.3k1MITPHPPHP ^5.5|^7.0

Since Jun 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Shawnley/altapay-php-api)[ Packagist](https://packagist.org/packages/shawnley/altapay-php-api)[ RSS](/packages/shawnley-altapay-php-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)Dependencies (12)Versions (11)Used By (0)

Altapay - PHP API – [![Build Status](https://camo.githubusercontent.com/54c44c7029d76f143a0d06dfb4ad9808938927f76a78bc1557fa04f7abd84df5/68747470733a2f2f7472617669732d63692e6f72672f6c73762f616c74617061792d7068702d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lsv/altapay-php-api) [![codecov](https://camo.githubusercontent.com/28641efcc40d532bf53555349f88a49813b030be9b21015ce96f8ff874938673/68747470733a2f2f636f6465636f762e696f2f67682f6c73762f616c74617061792d7068702d6170692f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/lsv/altapay-php-api) [![SensioLabsInsight](https://camo.githubusercontent.com/878d5ddc7731f380bb6c95d99f7faeedaf89b9a1223bc93d9f4e5f0f60782fe4/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65633031646366392d643964642d343232372d623131362d3863373236313762373962632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/ec01dcf9-d9dd-4227-b116-8c72617b79bc)
=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#altapay---php-api----)

For accessing Altapay payment gateway through the API

### Install

[](#install)

`composer require lsv/altapay-php-api`

or add it to your `composer.json` file

```
"require": {
    "lsv/altapay-php-api": "^1.0"
}
```

### Usage

[](#usage)

For doing a [`capture`](docs/capture.md) the following can be used

```
$auth = new \Altapay\Authentication('username', 'password' , 'myshop.gateway.com');
$api = new \Altapay\Api\CaptureReservation($auth);
$api->setTransactionId('transaction id');
// Or you can use a transaction object you got from a previous API call
// $api->setTransaction($transactionObject);
try {
    $response = $api->call();
    // If everything went perfect, you will get a \Altapay\Api\Document\Capture in the response
} catch (\Altapay\Api\Exceptions\ClientException $e) {
    // If anything went wrong, you will get a exception where you can see the raw request and the raw response
}
```

More details in the [documentation](docs/index.md)

### License

[](#license)

The MIT License (MIT)

Copyright (c) 2016 Martin Aarhof

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 78.9% 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 ~45 days

Recently: every ~16 days

Total

10

Last Release

3255d ago

### Community

Maintainers

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

---

Top Contributors

[![lsv](https://avatars.githubusercontent.com/u/20708?v=4)](https://github.com/lsv "lsv (30 commits)")[![Shawnley](https://avatars.githubusercontent.com/u/3602500?v=4)](https://github.com/Shawnley "Shawnley (8 commits)")

---

Tags

paymentaltapay

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/shawnley-altapay-php-api/health.svg)

```
[![Health](https://phpackages.com/badges/shawnley-altapay-php-api/health.svg)](https://phpackages.com/packages/shawnley-altapay-php-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M464](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[eliashaeussler/cache-warmup

Composer package to warm up website caches, based on a given XML sitemap

75419.2k9](/packages/eliashaeussler-cache-warmup)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

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