PHPackages                             satispay/online-api-php-sdk - 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. satispay/online-api-php-sdk

Abandoned → [satispay/gbusiness-api-php-sdk](/?search=satispay%2Fgbusiness-api-php-sdk)Library[API Development](/categories/api)

satispay/online-api-php-sdk
===========================

Satispay GBusiness API PHP SDK

1.4.1(1y ago)164.8k6[2 issues](https://github.com/satispay/gbusiness-api-php-sdk/issues)MITPHPPHP &gt;=5.4.0

Since Jan 22Pushed 1y ago5 watchersCompare

[ Source](https://github.com/satispay/gbusiness-api-php-sdk)[ Packagist](https://packagist.org/packages/satispay/online-api-php-sdk)[ Docs](https://www.satispay.com)[ RSS](/packages/satispay-online-api-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (11)Used By (0)

Satispay GBusiness API PHP SDK
==============================

[](#satispay-gbusiness-api-php-sdk)

[![Packagist Version](https://camo.githubusercontent.com/797ac1fea8e5239aa58f040c0d869c4463f0f9180eed0ca713d48bf59492e0e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73617469737061792f67627573696e6573732d6170692d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/satispay/gbusiness-api-php-sdk)[![Packagist Downloads](https://camo.githubusercontent.com/56c9cc866b40e185f8b488a8c0bd723e670a0eb2922cb91f2c579c0ae21dfb7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73617469737061792f67627573696e6573732d6170692d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/satispay/gbusiness-api-php-sdk)

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

[](#installation)

Run the following command:

```
composer require satispay/gbusiness-api-php-sdk
```

If you do not wish to use Composer, import the `init.php` file.

```
require_once("/path/init.php");
```

Documentation
-------------

[](#documentation)

Authenticate with RSA Signature
-------------------------------

[](#authenticate-with-rsa-signature)

Sign in to your [Dashboard](https://business.satispay.com) at [business.satispay.com](https://business.satispay.com), click "Negozi Online" or "Negozi Fisici", and then click on "Genera un token di attivazione" to generate an activation token.

Use the activation token with the `authenticateWithToken` function to generate and exchange a pair of RSA keys.

Save the keys in your database or in a **safe place** not accesibile from your website.

```
// Authenticate and generate the keys
$authentication = \SatispayGBusiness\Api::authenticateWithToken("XXXXXX");

// Export keys
$publicKey = $authentication->publicKey;
$privateKey = $authentication->privateKey;
$keyId = $authentication->keyId;
```

Reuse the keys after authentication.

```
// Keys variables
$publicKey = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhk...";
$privateKey = "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBg...";
$keyId = "ldg9sbq283og7ua1abpj989kbbm2g60us6f18c1sciq...";

// Set keys
\SatispayGBusiness\Api::setPublicKey($publicKey);
\SatispayGBusiness\Api::setPrivateKey($privateKey);
\SatispayGBusiness\Api::setKeyId($keyId);
```

Enable Sandbox
--------------

[](#enable-sandbox)

To enable sandbox use `setSandbox` function.

```
\SatispayGBusiness\Api::setSandbox(true);
```

Changelog
---------

[](#changelog)

### 1.4.0

[](#140)

- Added custom header support in every HTTP call.
- Improve code formatting and documentation.
- Added RSA generation fallback with seclib (available via Composer only).

### 1.3.0

[](#130)

- Added `\SatispayGBusiness\Api::getPlatformHeader()` method.
- Added `\SatispayGBusiness\Api::setPlatformHeader()` method.
- Added `\SatispayGBusiness\Api::getTrackingHeader()` method.
- Added `\SatispayGBusiness\Api::setTrackingHeader()` method.
- Added `\SatispayGBusiness\Request::HEADER_OS` constant for `x-satispay-os` request header.
- Added `\SatispayGBusiness\Request::HEADER_OS_VERSION` constant for `x-satispay-osv` request headers.
- Added `\SatispayGBusiness\Request::HEADER_APP_VERSION` constant for `x-satispay-appv` request headers
- Added `\SatispayGBusiness\Request::HEADER_APP_NAME` constant for `x-satispay-appn` request headers.
- Added `\SatispayGBusiness\Request::HEADER_DEVICE_TYPE` constant for `x-satispay-devicetype` request headers.
- Added `\SatispayGBusiness\Request::HEADER_TRACKING_CODE` constant for `x-satispay-tracking-code` request headers.
- Changed in `\SatispayGBusiness\Request` header key from `X-Satispay-Platformv` to `x-satispay-osv`
- Changed in `\SatispayGBusiness\Request` header key from `X-Satispay-Plugin-Version` to `x-satispay-appv`
- Changed in `\SatispayGBusiness\Request` header key from `X-Satispay-Plugin-Name` to `x-satispay-appn`
- Changed in `\SatispayGBusiness\Request` header key from `X-Satispay-Type` to `x-satispay-devicetype`

### 1.2.1

[](#121)

- Added `\SatispayGBusiness\ApiAuthentication` class.
- Performed code refactoring to adhere to PSR2 Coding Standards

### 1.2.0

[](#120)

- Added `\SatispayGBusiness\PreAuthorizedPaymentToken` class.

### 1.1.1

[](#111)

- Fixed composer file version

### 1.1.0

[](#110)

- Removed `\SatispayGBusiness\Api::testAuthentication()` method.
- Removed `\SatispayGBusiness\Api::getSecurityBearer()` method.
- Removed `\SatispayGBusiness\Api::setSecurityBearer()` method.
- Added `\SatispayGBusiness\Api::getPlatformVersionHeader()` method.
- Added `\SatispayGBusiness\Api::setPlatformVersionHeader()` method.
- Added `\SatispayGBusiness\Api::getPluginVersionHeader()` method.
- Added `\SatispayGBusiness\Api::setPluginVersionHeader()` method.
- Added `\SatispayGBusiness\Api::getPluginNameHeader()` method.
- Added `\SatispayGBusiness\Api::setPluginNameHeader()` method.
- Added `\SatispayGBusiness\Api::getTypeHeader()` method.
- Added `\SatispayGBusiness\Api::setTypeHeader()` method.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 54.5% 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 ~299 days

Recently: every ~478 days

Total

8

Last Release

578d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f57e348126e4d6cc0cb329fbc7e7571bfba36765c799bdc4b91c4fc72a0f1b1?d=identicon)[satispay](/maintainers/satispay)

---

Top Contributors

[![EmanueleCoppola](https://avatars.githubusercontent.com/u/12816305?v=4)](https://github.com/EmanueleCoppola "EmanueleCoppola (24 commits)")[![springerin](https://avatars.githubusercontent.com/u/563087?v=4)](https://github.com/springerin "springerin (8 commits)")[![alessiodionisi](https://avatars.githubusercontent.com/u/1165381?v=4)](https://github.com/alessiodionisi "alessiodionisi (7 commits)")[![mirkocesaro](https://avatars.githubusercontent.com/u/1431255?v=4)](https://github.com/mirkocesaro "mirkocesaro (2 commits)")[![aleron75](https://avatars.githubusercontent.com/u/1199894?v=4)](https://github.com/aleron75 "aleron75 (1 commits)")[![alekitto](https://avatars.githubusercontent.com/u/1257206?v=4)](https://github.com/alekitto "alekitto (1 commits)")[![stvnmsh](https://avatars.githubusercontent.com/u/55988572?v=4)](https://github.com/stvnmsh "stvnmsh (1 commits)")

---

Tags

apigbusinessphpsatispaysdkphpapisdksatispaygbusiness

### Embed Badge

![Health badge](/badges/satispay-online-api-php-sdk/health.svg)

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

###  Alternatives

[satispay/gbusiness-api-php-sdk

Satispay GBusiness API PHP SDK

19198.0k4](/packages/satispay-gbusiness-api-php-sdk)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)[clever/clever-php

231.6k](/packages/clever-clever-php)

PHPackages © 2026

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