PHPackages                             selimsalihovic/pikpay-php - 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. selimsalihovic/pikpay-php

ActiveLibrary[Payment Processing](/categories/payments)

selimsalihovic/pikpay-php
=========================

Payment Processing Library for PikPay

v1.0(9y ago)17754MITPHPPHP &gt;=7.0

Since Mar 23Pushed 9y ago6 watchersCompare

[ Source](https://github.com/SelimSalihovic/pikpay-php)[ Packagist](https://packagist.org/packages/selimsalihovic/pikpay-php)[ Docs](https://github.com/selimsalihovic/pikpay-php)[ RSS](/packages/selimsalihovic-pikpay-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

PikPay-php
==========

[](#pikpay-php)

[![SensioLabsInsight](https://camo.githubusercontent.com/b6d8b0fdd977312c6fa94f71b97e049425d61f8320655278666691371447ed94/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39623666383931382d396332322d343861372d396337382d3938653836386535623930382f6269672e706e67)](https://insight.sensiolabs.com/projects/9b6f8918-9c22-48a7-9c78-98e868e5b908)

[![Latest Stable Version](https://camo.githubusercontent.com/a14bfbc597db4456c96875573873d7e34676efb6651dd893ba00841d89ca2dc3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656c696d73616c69686f7669632f70696b7061792d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/selimsalihovic/pikpay-php)[![Minimum PHP Version](https://camo.githubusercontent.com/55453b8aba1f0d2c449c2dfa58e6debd503f9d637d2e474960cea8c266371e2f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e332e302d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![Build Status](https://camo.githubusercontent.com/6946c4f52622a98e2e1067f5b5ed1bdf20f5022208def261c7dffb6b34996d97/68747470733a2f2f7472617669732d63692e6f72672f53656c696d53616c69686f7669632f70696b7061792d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SelimSalihovic/pikpay-php)[![StyleCI](https://camo.githubusercontent.com/11aeda909b1c0da64a11ae7b53db05cf87f078f6addb83e5f5bcdc3407a27c1d/68747470733a2f2f7374796c6563692e696f2f7265706f732f35343531353833382f736869656c64)](https://styleci.io/repos/54515838)

Install
-------

[](#install)

Via Composer

```
$ composer require selimsalihovic/pikpay-php
```

Usage
-----

[](#usage)

To use the package first grab your credentials from your PikPay account. You will need your **Authenticity Token** (API\_KEY) and **Key** (SECRET\_KEY). Before any request, an instance of Gateway has to be constructed.

```
$gateway = new Gateway(getenv('ENDPOINT'), getenv('API_KEY'), getenv('SECRET_KEY'));
```

### Input Data

[](#input-data)

For each Request, a data array is needed. See the [PikPay Docs](https://ipgtest.pikpay.ba/hr/documentation/direct "PikPay Docs") to see which values need to be included for which request. **Note**: you do not need to include the 'digest' parameter as it is calculated for you on each request based on the data array.

Here is an example of a valid data array.

```
$data = [
    'amount'          => 5500,
    'expiration-date' => 1707,
    'cvv'             => 286,
    'pan'             => 5464000000000008,
    'ip'              => '128.93.108.112',
    'order-info'      => 'Test Order',
    'ch-address'      => '1419 Westwood Blvd',
    'ch-city'         => 'Los Angeles',
    'ch-country'      => 'USA',
    'ch-email'        => 'john.doe@gmail.com',
    'ch-full-name'    => 'John Doe',
    'ch-phone'        => '636-48018',
    'ch-zip'          => '90024',
    'currency'        => 'USD', //EUR, BAM, HRK
    'order-number'    => 'order-d234djflq0wz',
    'language'        => 'en',
];
```

### Sending an Authorization Request

[](#sending-an-authorization-request)

```
$response = $gateway->authorize($data);
if ($response->isSuccessfull()) {
    //handle success case
} else {
    //display error
}
```

### Sending a Capture Request

[](#sending-a-capture-request)

Capture requests are sent only for previously authorized transactions.

```
$gateway->authorize($data);
$response = $gateway->capture($data);
```

### Sending a Purchase Request

[](#sending-a-purchase-request)

The purchase request does both.

```
$response = $gateway->purchase($data);
```

### Sending a Refund Request

[](#sending-a-refund-request)

```
$response = $gateway->refund($data);
```

### Sending a Void Request

[](#sending-a-void-request)

```
$response = $gateway->void($data);
```

Testing
-------

[](#testing)

To run the tests be sure to have all the dev dependencies from composer.json installed.

```
$ cd pikpay-php && cp example.phpunit.xml.dist phpunit.xml.dist
$ nano phpunit.xml.dist #update your credentials and save them
$ vendor/bin/phpunit
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~55 days

Total

4

Last Release

3585d ago

Major Versions

0.3 → v1.02016-09-04

PHP version history (2 changes)0.1PHP &gt;=5.3.0

v1.0PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3939551?v=4)[Selim Salihovic](/maintainers/SelimSalihovic)[@SelimSalihovic](https://github.com/SelimSalihovic)

---

Top Contributors

[![SelimSalihovic](https://avatars.githubusercontent.com/u/3939551?v=4)](https://github.com/SelimSalihovic "SelimSalihovic (32 commits)")

---

Tags

pikpay-phpselimsalihovic

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/selimsalihovic-pikpay-php/health.svg)

```
[![Health](https://phpackages.com/badges/selimsalihovic-pikpay-php/health.svg)](https://phpackages.com/packages/selimsalihovic-pikpay-php)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.3M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.4M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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