PHPackages                             pacerit/bitbaypay-api-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. [API Development](/categories/api)
4. /
5. pacerit/bitbaypay-api-php

AbandonedArchivedLibrary[API Development](/categories/api)

pacerit/bitbaypay-api-php
=========================

Implementation of BitBayPay REST API

1.0.2(6y ago)1381MITPHPPHP ^7.2

Since Mar 19Pushed 6y agoCompare

[ Source](https://github.com/pacerit/bitbaypay-api-php)[ Packagist](https://packagist.org/packages/pacerit/bitbaypay-api-php)[ RSS](/packages/pacerit-bitbaypay-api-php/feed)WikiDiscussions master Synced 6d ago

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

BitBayPay API
=============

[](#bitbaypay-api)

[![GitHub tag (latest by date)](https://camo.githubusercontent.com/3b28c2cbcb5c37140b23faa294d294e67d94e3c6bf6bafab345f1bdc49e780b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672d646174652f706163657269742f6269746261797061792d6170692d7068703f6c6162656c3d56657273696f6e)](https://camo.githubusercontent.com/3b28c2cbcb5c37140b23faa294d294e67d94e3c6bf6bafab345f1bdc49e780b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672d646174652f706163657269742f6269746261797061792d6170692d7068703f6c6162656c3d56657273696f6e)[![GitHub](https://camo.githubusercontent.com/4dadb927ef3cce281bb8e3dce054e21871f998372378e8abfabd50fe36870f3e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706163657269742f6269746261797061792d6170692d7068703f6c6162656c3d4c6963656e7365)](https://camo.githubusercontent.com/4dadb927ef3cce281bb8e3dce054e21871f998372378e8abfabd50fe36870f3e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706163657269742f6269746261797061792d6170692d7068703f6c6162656c3d4c6963656e7365)[![Packagist](https://camo.githubusercontent.com/3ec720f8b3859f3eb2e69108f68185ec295ec87ceac79bb09d6a7c4a336c268c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706163657269742f6269746261797061792d6170692d7068703f6c6162656c3d446f776e6c6f616473)](https://camo.githubusercontent.com/3ec720f8b3859f3eb2e69108f68185ec295ec87ceac79bb09d6a7c4a336c268c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706163657269742f6269746261797061792d6170692d7068703f6c6162656c3d446f776e6c6f616473)[![PHP from Packagist](https://camo.githubusercontent.com/f4d15ca21dea60866041961befd5544d26fc1dbb13eea463cfeadb8386ca4731/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706163657269742f6269746261797061792d6170692d7068703f6c6162656c3d504850)](https://camo.githubusercontent.com/f4d15ca21dea60866041961befd5544d26fc1dbb13eea463cfeadb8386ca4731/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706163657269742f6269746261797061792d6170692d7068703f6c6162656c3d504850)[![StyleCI](https://camo.githubusercontent.com/9de2cac84f38cd578913ccd51dbea2936ad612b65c3c19d4013b5ade0d002efd/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3234363330373334322f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/246307342)[![Build Status](https://camo.githubusercontent.com/4cd8aa40cb8eb5ebdbec2c8352b09187d0895442ab148053fe66df70fc778fda/68747470733a2f2f7472617669732d63692e636f6d2f706163657269742f6269746261797061792d6170692d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/pacerit/bitbaypay-api-php)

Implementation of BitBayPay REST API -

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

[](#requirements)

- PHP - ^7.2

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

[](#installation)

You can install this package by composer:

```
composer require pacerit/bitbaypay-api-php
```

Usage
-----

[](#usage)

Example call of "payments" API method:

```
$client = new BitBayPay();

$parameters = [
    BitBayPayInterface::PARAMETER_DESTINATION_CURRENCY => 'PLN',
    BitBayPayInterface::PARAMETER_PRICE                => '1000',
    BitBayPayInterface::PARAMETER_ORDER_ID             => 'randomstring',
    // This parameters below, are not required.
    // BitBayPayInterface::PARAMETER_SOURCE_CURRENCY      => '',
    // BitBayPayInterface::PARAMETER_COVERED_BY           => '',
    // BitBayPayInterface::PARAMETER_KEEP_SOURCE_CURRENCY => '',
    // BitBayPayInterface::PARAMETER_SUCCESS_CALLBACK_URL => '',
    // BitBayPayInterface::PARAMETER_FAILURE_CALLBACK_URL => '',
    // BitBayPayInterface::PARAMETER_NOTIFICATIONS_URL    => '',
];

$response = $client->setPublicKey("YOUR_PUBLIC_KEY")
    ->setPrivateKey("YOUR_PRIVATE_KEY")
    ->createPayment($parameters);
```

Example response:

```
[
    "paymentId" => "8418c539-f271-4287-b252-d3e3ee12f455",
    "url"       => "https://checkout.bitbay.net/payment/8418c539-f271-4287-b252-d3e3ee12f455"
]
```

Available functions
-------------------

[](#available-functions)

- Start payment -
- Get currency pairs -
- Get currency settings -
- Payments list -
- Payment details - [https://api.bitbaypay.com/rest/bitbaypay/payments/{paymentId}​](https://api.bitbaypay.com/rest/bitbaypay/payments/%7BpaymentId%7D%E2%80%8B)

Changelog
---------

[](#changelog)

Go to the [Changelog](CHANGELOG.md) for a full change history of the package.

Testing
-------

[](#testing)

You must provide your own credentials for testing environment:

```
BITBAYPAY_TEST_PUBLIC_KEY=
BITBAYPAY_TEST_PRIVATE_KEY=
```

Run tests:

```
composer test

```

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within package, please send an e-mail to Wiktor Pacer via . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

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

Every ~6 days

Total

3

Last Release

2237d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53344063?v=4)[Wiktor Pacer](/maintainers/WiktorPacer)[@WiktorPacer](https://github.com/WiktorPacer)

---

Top Contributors

[![WiktorPacer](https://avatars.githubusercontent.com/u/53344063?v=4)](https://github.com/WiktorPacer "WiktorPacer (20 commits)")

---

Tags

bitbaybitbay-apibitbaypayphpBitBaybitbaypaybitbayapi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pacerit-bitbaypay-api-php/health.svg)

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[mvdnbrk/dhlparcel-php-api

DHL Parcel API client for PHP

3957.9k5](/packages/mvdnbrk-dhlparcel-php-api)[exinone/mixin-sdk-php

Mixin-Network SDK for PHP, modify from ExinOne/laravel-mixin-sdk

242.5k4](/packages/exinone-mixin-sdk-php)

PHPackages © 2026

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