2017 © Pedro Peláez
 

library hypercharge-schema

Hypercharge API JSON Schema

image

hypercharge/hypercharge-schema

Hypercharge API JSON Schema

  • Tuesday, February 14, 2017
  • by hypercharge
  • Repository
  • 10 Watchers
  • 0 Stars
  • 3,478 Installations
  • Ruby
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

hypercharge-schema

json-schema for hypercharge payment request data., (*1)

Matches hypercharge-API-doc version 2.24 2014/09/16, (*2)

Build Status Gem Version, (*3)

Fixtures

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

A fixture loader is provided for php, ruby and javascript., (*5)

php:, (*6)

// 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:, (*7)

# 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.):, (*8)

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

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

./test/all.sh

Or one by one:, (*10)

Ruby

ruby >= 1.9.3, (*11)

Install dependencies, (*12)

bundle

Run tests, (*13)

rake

PHP

php >= 5.3, (*14)

Install Composer and dependencies, (*15)

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

run test, (*16)

php test/php/all.php

JavaScript

Install node.js, (*17)

Install dependencies, (*18)

npm install

run test, (*19)

npm test

Btw: nvm is a handy tool for installing and handling multiple node.js versions on one mashine., (*20)

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., (*21)

The Versions

14/02 2017

dev-master

9999999-dev

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Mentzel
by Luzifer Altenberg

api schema json payment hypercharge

14/12 2015

1.25.4

1.25.4.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Mentzel
by Luzifer Altenberg

api schema json payment hypercharge

03/02 2015

1.25.3

1.25.3.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Mentzel
by Luzifer Altenberg

api schema json payment hypercharge

09/10 2014

1.25.2

1.25.2.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Mentzel
by Luzifer Altenberg

api schema json payment hypercharge

19/09 2014

1.25.1

1.25.1.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Mentzel
by Luzifer Altenberg

api schema json payment hypercharge

27/08 2014

1.25.0

1.25.0.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Mentzel
by Luzifer Altenberg

api schema json payment hypercharge

09/07 2014

1.24.8

1.24.8.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Mentzel
by Luzifer Altenberg

api schema json payment hypercharge

12/05 2014

1.24.7

1.24.7.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Mentzel
by Luzifer Altenberg

api schema json payment hypercharge

10/09 2013

1.24.6

1.24.6.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Mentzel
by Luzifer Altenberg

api schema json payment hypercharge

27/08 2013

1.24.5

1.24.5.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Mentzel
by Luzifer Altenberg

api schema json payment hypercharge

05/08 2013

1.24.4

1.24.4.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

api schema json payment hypercharge

25/07 2013

1.24.3

1.24.3.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

api schema json payment hypercharge

04/07 2013

1.24.2

1.24.2.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

api schema json payment hypercharge

27/06 2013

1.24.1

1.24.1.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

api schema json payment hypercharge

20/06 2013

1.24.0

1.24.0.0

Hypercharge API JSON Schema

  Sources   Download

MIT

The Requires

 

The Development Requires

api schema json payment hypercharge