2017 © Pedro Peláez
 

library online-api-php-sdk

Satispay Online API PHP SDK

image

satispay/online-api-php-sdk

Satispay Online API PHP SDK

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 19 Versions
  • 6 % Grown

The README.md

Satispay Online API PHP SDK

Packagist Version Packagist Downloads, (*1)

Deprecated API

For new integrations please use https://github.com/satispay/gbusiness-api-php-sdk., (*2)

Installation

Run the following command:, (*3)

composer require satispay/online-api-php-sdk

If you do not wish to use Composer, import the init.php file., (*4)

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

Documentation

https://s3-eu-west-1.amazonaws.com/docs.online.satispay.com/index.html, (*5)

Authenticate with Bearer

Sign in to your Dashboard at business.satispay.com, click "Negozi Online", click on "Crea codice di attivazione" and select "Security bearer" on top menu., (*6)

\SatispayOnline\Api::setSecurityBearer("osh_...");

Authenticate with RSA Signature

Sign in to your Dashboard at business.satispay.com, click "Negozi Online", and then click on "Genera un token di attivazione" to generate an activation token., (*7)

Use the activation token with the authenticateWithToken function to generate and exchange a pair of RSA keys., (*8)

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

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

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

Reuse the keys after authentication., (*10)

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

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

// Test the authentication
\SatispayOnline\Api::testAuthentication();

Enable Sandbox

To enable sandbox use setSandbox function., (*11)

\SatispayOnline\Api::setSandbox(true);

The Versions

30/07 2018

dev-version-2

dev-version-2 http://satispay.com

Satispay Online API PHP SDK

  Sources   Download

MIT

The Requires

  • ext-curl *
  • ext-json *
  • ext-mbstring *
  • php >=5.4.0

 

api php sdk online satispay

28/02 2018

dev-master

9999999-dev

Satispay Online API PHP SDK

  Sources   Download

MIT GPL-3.0

The Requires

  • ext-curl *
  • ext-json *
  • ext-mbstring *
  • php >=5.5

 

api php sdk online satispay

28/02 2018

1.6.5

1.6.5.0

Satispay Online API PHP SDK

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

26/02 2018

1.6.4

1.6.4.0

Satispay Online API PHP SDK

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

22/02 2018

1.6.3

1.6.3.0

Satispay Online API PHP SDK

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

04/12 2017

1.6.2

1.6.2.0

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.5
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

28/11 2017

1.6.1

1.6.1.0

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.5
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

14/11 2017

1.5.0

1.5.0.0

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.5
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

09/11 2017

1.4.0

1.4.0.0

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.5
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

08/11 2017

1.3.6

1.3.6.0

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.5
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

16/10 2017

1.3.5

1.3.5.0

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

16/10 2017

dev-develop

dev-develop

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

29/08 2017

1.3.3

1.3.3.0

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

22/08 2017

1.3.2

1.3.2.0

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

21/08 2017

1.3.1

1.3.1.0

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

26/07 2017

1.3.0

1.3.0.0

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

04/07 2017

1.2.1

1.2.1.0

Satispay Online API PHP SDK

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api php sdk online satispay

28/06 2017

1.2.0

1.2.0.0

Satispay Online API PHP SDK

  Sources   Download

GPLv3

The Requires

  • php >=5.6
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api sdk online satispay

27/06 2017

1.1.0

1.1.0.0

Satispay Online API PHP SDK

  Sources   Download

GPLv3

The Requires

  • php >=5.6
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

api sdk online satispay