dev-master
9999999-devspirit labs payment system SDK
MIT
The Requires
- php >=5.3.0
payment sdk
spirit labs payment system 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)
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)
$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);
This library is released under MIT license., (*7)
spirit labs payment system SDK
MIT
payment sdk