2017 © Pedro Peláez
 

library php-sdk

spirit labs payment system SDK

image

spiritlabs-api/php-sdk

spirit labs payment system SDK

  • Monday, May 19, 2014
  • by Degola
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-sdk

spirit labs API PHP SDK, (*1)

This is the implementation for the spirit labs payment aggregation gateway., (*2)

BE CAREFUL: THIS SDK IS CURRENTLY UNDER DEVELOPMENT AND NOT STABLE. IF YOU FIND BUGS PLEASE PATCH VIA PULL REQUEST!, (*3)

This package is compliant with PSR-0, PSR-1, and PSR-2. If you notice compliance oversights, please send a patch via pull request., (*4)

Usage

This SDK is available via composer (https://packagist.org/packages/spiritlabs-api/php-sdk), just add "spiritlabs-api/php-sdk": "dev-master" to your composer.json require list., (*5)

For usage details see also examples/ folder., (*6)

Get available payment methods

$API = new \SpiritLabs\API\Client(new \SpiritLabs\API\Authentication_HTTPBasicAccessAuth(
    $ApiKey,
    $SecretKey
));
$PaymentCustomer = new \SpiritLabs\API\Payment_Customer(array('UserId' => $UserId));
$PaymentCustomer->firstname = $firstname;
$PaymentCustomer->lastname = $lastname;

$PaymentMethods = $API->getPaymentMethods(
    array(
        new \SpiritLabs\API\Payment_Price($price, $currency)
    ),
    $PaymentCustomer,
    true
);

print_r($PaymentMethods);

Todo

  • Add all API methods from https://api.spiritlabs.de
  • Add and improve documentation (source code and usage documentation)

License

This library is released under MIT license., (*7)

The Versions

19/05 2014

dev-master

9999999-dev

spirit labs payment system SDK

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

payment sdk