PHPackages                             hypercharge/hypercharge-schema - 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. hypercharge/hypercharge-schema

ActiveLibrary[API Development](/categories/api)

hypercharge/hypercharge-schema
==============================

Hypercharge API JSON Schema

1.25.4(10y ago)23.6k4[1 issues](https://github.com/hypercharge/hypercharge-schema/issues)1MITRubyPHP &gt;=5.3

Since Jun 20Pushed 9y ago11 watchersCompare

[ Source](https://github.com/hypercharge/hypercharge-schema)[ Packagist](https://packagist.org/packages/hypercharge/hypercharge-schema)[ RSS](/packages/hypercharge-hypercharge-schema/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (15)Used By (1)

hypercharge-schema
==================

[](#hypercharge-schema)

json-schema for hypercharge payment request data.

Matches [hypercharge-API-doc](https://github.com/hypercharge/hypercharge-api-doc) version 2.24 2014/09/16

[![Build Status](https://camo.githubusercontent.com/b798b7ad4c63c0287a6e0b7f749fa8e2fc669510f02ae71cf456ed63dd493e4e/68747470733a2f2f7472617669732d63692e6f72672f68797065726368617267652f68797065726368617267652d736368656d612e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/hypercharge/hypercharge-schema)[![Gem Version](https://camo.githubusercontent.com/8e7a46c21af6fd2512ebf4ad77663087113f0c70e67c276ad4bdd0fb1ea13e77/68747470733a2f2f62616467652e667572792e696f2f72622f68797065726368617267652d736368656d612e706e67)](http://badge.fury.io/rb/hypercharge-schema)

Fixtures
--------

[](#fixtures)

There is a rather complete set of hypercharge API xml requests, respsonses and notifications provided as fixtures in `/test/fixtures/`

A fixture loader is provided for php, ruby and javascript.

php:

```
// requests to hypercharge
$xmlString = Hypercharge\JsonSchemaFixture::request('sale.xml');

// or as json string
$jsonString = Hypercharge\JsonSchemaFixture::request('sale.json');

// response from hypercharge
$xmlString = Hypercharge\JsonSchemaFixture::response('sale.xml');

// notification from hypercharge
$postData = json_decode(Hypercharge\JsonSchemaFixture::notification('transaction_notification.json'), true);
```

ruby:

```
# request to hypercharge
xmlString = Hypercharge::Schema::Fixture.xml 'requests/sale'

# or as parsed json
jsonData = Hypercharge::Schema::Fixture.json 'requests/sale'

# response from hypercharge
xmlString = Hypercharge::Schema::Fixture.xml 'responses/sale'

# notification from hypercharge
jsonData = Hypercharge::Schema::Fixture.json 'notifications/transaction_notification'
```

javascript (sync, no async atm.):

```
var Schema = require('hypercharge-schema').Schema;

// request to hypercharge
var xmlString = Schema.Fixture.xml('requests/sale');

// or as parsed json
var jsonData = Schema.Fixture.json('requests/sale');

// response from hypercharge
var xmlString = Schema.Fixture.xml('responses/sale');

// notification from hypercharge
var postData = Schema.Fixture.json('notifications/transaction_notification');
```

Tests
-----

[](#tests)

Assuming you have all dependencies installed (see below) you can run all tests (ruby, php, javascript) at once.

```
./test/all.sh
```

Or one by one:

### Ruby

[](#ruby)

ruby &gt;= 1.9.3

Install dependencies

```
bundle

```

Run tests

```
rake

```

### PHP

[](#php)

php &gt;= 5.3

Install Composer and dependencies

```
curl -o composer.phar http://getcomposer.org/composer.phar
php composer.phar install
php composer.phar update --dev
```

run test

```
php test/php/all.php
```

### JavaScript

[](#javascript)

Install [node.js](http://nodejs.org/)

Install dependencies

```
npm install
```

run test

```
npm test
```

Btw: [nvm](https://github.com/creationix/nvm) is a handy tool for installing and handling multiple node.js versions on one mashine.

Warranty
--------

[](#warranty)

This software is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 74.7% 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 ~69 days

Recently: every ~118 days

Total

14

Last Release

3805d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/557783835d883292084965c829938913bebbbd9f6289673e23e78b40c4139d73?d=identicon)[hypercharge](/maintainers/hypercharge)

---

Top Contributors

[![janmentzel](https://avatars.githubusercontent.com/u/363563?v=4)](https://github.com/janmentzel "janmentzel (59 commits)")[![mdkroyer](https://avatars.githubusercontent.com/u/6824719?v=4)](https://github.com/mdkroyer "mdkroyer (14 commits)")[![larisagroza](https://avatars.githubusercontent.com/u/8049178?v=4)](https://github.com/larisagroza "larisagroza (5 commits)")[![vierbergenlars](https://avatars.githubusercontent.com/u/1194648?v=4)](https://github.com/vierbergenlars "vierbergenlars (1 commits)")

---

Tags

jsonapischemapaymenthypercharge

### Embed Badge

![Health badge](/badges/hypercharge-hypercharge-schema/health.svg)

```
[![Health](https://phpackages.com/badges/hypercharge-hypercharge-schema/health.svg)](https://phpackages.com/packages/hypercharge-hypercharge-schema)
```

###  Alternatives

[walle89/swedbank-json

Unofficial API client for the Swedbank's and Sparbanken's mobile apps in Sweden.

752.5k](/packages/walle89-swedbank-json)[everypay/everypay-php

1742.0k](/packages/everypay-everypay-php)[wayofdev/laravel-symfony-serializer

📦 Laravel wrapper around Symfony Serializer.

2113.6k](/packages/wayofdev-laravel-symfony-serializer)

PHPackages © 2026

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