PHPackages                             ticketpark/saferpay-json-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. ticketpark/saferpay-json-api

ActiveLibrary[Payment Processing](/categories/payments)

ticketpark/saferpay-json-api
============================

A php library to use the json api of Saferpay

v6.2(1y ago)34312.6k—5.5%26[4 issues](https://github.com/Ticketpark/SaferpayJsonApi/issues)1MITPHPPHP ~7.4|~8.0.0|~8.1.0|~8.2.0|~8.3.0|~8.4.0CI passing

Since Jan 28Pushed 11mo ago4 watchersCompare

[ Source](https://github.com/Ticketpark/SaferpayJsonApi)[ Packagist](https://packagist.org/packages/ticketpark/saferpay-json-api)[ Docs](https://github.com/Ticketpark/SaferpayJsonApi)[ RSS](/packages/ticketpark-saferpay-json-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (41)Used By (1)

SaferpayJsonApi
===============

[](#saferpayjsonapi)

[![Build Status](https://github.com/Ticketpark/SaferpayJsonApi/actions/workflows/tests.yml/badge.svg)](https://github.com/Ticketpark/SaferpayJsonApi/actions)

A php library to use the [Saferpay Json API](http://saferpay.github.io/jsonapi/).

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

[](#installation)

Add the library in your composer.json:

```
composer require ticketpark/saferpay-json-api

```

Usage
-----

[](#usage)

In order to perform a payment as you would typically do it in an online shop, you need to handle the following steps:

1. Initialize the payment page (see [/example/PaymentPage/example-initialize.php](/example/PaymentPage/example-initialize.php))
2. Redirect the user to the payment page and let them enter their payment data
3. Assert that the payment was successfully done (see [/example/PaymentPage/example-assert.php](/example/PaymentPage/example-assert.php))
4. Capture the payment to make it final (see [/example/Transaction/example-capture.php](/example/Transaction/example-capture.php))

Have a look at the [example folder](/example) for more.

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

[](#documentation)

This library is currently [based on v1.42 of the Saferpay JSON API](https://saferpay.github.io/jsonapi/1.42/index.html).

Find the most current documentation of the Saferpay JSON API here:

Contribution
------------

[](#contribution)

You are [welcome to contribute](/.github/contributing.md) to this repo.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance43

Moderate activity, may be stable

Popularity47

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity93

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 75.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 ~82 days

Recently: every ~40 days

Total

40

Last Release

542d ago

Major Versions

1.5 → 2.02020-03-08

2.3 → v3.0-RC12020-05-04

v3.5 → v4.02022-05-04

v4.5 → v5.02024-06-15

v5.1 → v6.02024-07-24

PHP version history (9 changes)0.2PHP &gt;=5.6

2.0PHP ^7.3.0

2.3PHP &gt;=7.3

v3.1PHP ^7.3

v3.3PHP ^7.3|^8.0

v4.2PHP ^7.4|^8.0.0|^8.1.0

v4.3PHP ^7.4|^8.0.0|^8.1.0|^8.2.0

v4.5PHP ~7.4|~8.0.0|~8.1.0|~8.2.0|~8.3.0

v6.2PHP ~7.4|~8.0.0|~8.1.0|~8.2.0|~8.3.0|~8.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1736670?v=4)[Ticketpark GmbH](/maintainers/ticketpark)[@Ticketpark](https://github.com/Ticketpark)

---

Top Contributors

[![sprain](https://avatars.githubusercontent.com/u/260361?v=4)](https://github.com/sprain "sprain (227 commits)")[![giriroub](https://avatars.githubusercontent.com/u/47786813?v=4)](https://github.com/giriroub "giriroub (22 commits)")[![codesource](https://avatars.githubusercontent.com/u/1862276?v=4)](https://github.com/codesource "codesource (14 commits)")[![DF-Dave](https://avatars.githubusercontent.com/u/59051498?v=4)](https://github.com/DF-Dave "DF-Dave (8 commits)")[![thomasmeike](https://avatars.githubusercontent.com/u/7045954?v=4)](https://github.com/thomasmeike "thomasmeike (8 commits)")[![fabianerni](https://avatars.githubusercontent.com/u/1094578?v=4)](https://github.com/fabianerni "fabianerni (5 commits)")[![Yavis](https://avatars.githubusercontent.com/u/5630778?v=4)](https://github.com/Yavis "Yavis (4 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (4 commits)")[![maldoinc](https://avatars.githubusercontent.com/u/1253062?v=4)](https://github.com/maldoinc "maldoinc (2 commits)")[![qestoppey](https://avatars.githubusercontent.com/u/65346438?v=4)](https://github.com/qestoppey "qestoppey (1 commits)")[![geekdevs](https://avatars.githubusercontent.com/u/864822?v=4)](https://github.com/geekdevs "geekdevs (1 commits)")[![dominikzogg](https://avatars.githubusercontent.com/u/1011217?v=4)](https://github.com/dominikzogg "dominikzogg (1 commits)")[![drjozo](https://avatars.githubusercontent.com/u/15730864?v=4)](https://github.com/drjozo "drjozo (1 commits)")[![laravel-vesuvius](https://avatars.githubusercontent.com/u/20557405?v=4)](https://github.com/laravel-vesuvius "laravel-vesuvius (1 commits)")

---

Tags

php-librarysaferpay-apisaferpay

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ticketpark-saferpay-json-api/health.svg)

```
[![Health](https://phpackages.com/badges/ticketpark-saferpay-json-api/health.svg)](https://phpackages.com/packages/ticketpark-saferpay-json-api)
```

###  Alternatives

[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)[luyadev/luya-module-payment

LUYA Payment allows you to integrate payments in a safe and fast way. The module take care of all the provider required steps (call, create, success, abort, etc.) and provides all the informations for your store.

1012.1k](/packages/luyadev-luya-module-payment)

PHPackages © 2026

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