loevgaard / altapay-php-sdk
A PHP SDK for AltaPay
v3.0.0
2017-12-06 11:29 UTC
Requires
- php: ~7.1
- alcohol/iso4217: ^3.1
- beberlei/assert: ^2.7
- guzzlehttp/guzzle: ^6.2
- moneyphp/money: ^3.0
- symfony/options-resolver: ^3.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ~5.5||~6.0
README
A library for making requests to the Altapay API.
Install
Via Composer
$ composer require loevgaard/altapay-php-sdk
Usage
Example of a payment request:
<?php require_once 'vendor/autoload.php'; use Loevgaard\AltaPay\Client; use Loevgaard\AltaPay\Payload\PaymentRequest as PaymentRequestPayload; use Money\Money; use Money\Currency; $client = new Client('Altapay Username', 'Altapay Password'); $payload = new PaymentRequestPayload('Terminal', 'order-1234', new Money(12595, new Currency('DKK'))); $response = $client->createPaymentRequest($payload);
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email joachim@loevgaard.dk
instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.