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

ActiveLibrary[Payment Processing](/categories/payments)

croatiangrn/pikpay-php
======================

Payment Processing Library for PikPay

1.3.0(7y ago)034MITPHPPHP &gt;=7.0

Since Mar 23Pushed 7y ago2 watchersCompare

[ Source](https://github.com/croatiangrn/pikpay-php)[ Packagist](https://packagist.org/packages/croatiangrn/pikpay-php)[ Docs](https://github.com/croatiangrn/pikpay-php)[ RSS](/packages/croatiangrn-pikpay-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (8)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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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 ~137 days

Recently: every ~205 days

Total

7

Last Release

2875d ago

Major Versions

0.3 → v1.02016-09-04

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

v1.0PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

pikpay-phpcroatiangrn

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)

PHPackages © 2026

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