loevgaard / dandomain-pay-php-sdk
A library for using the Dandomain Pay API to make payments in the Dandomain webshop system
Installs: 1 196
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ~7.1
- brick/math: ^0.7.0
- moneyphp/money: ^3.0
- psr/http-message: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ~5.5||~6.0
- zendframework/zend-diactoros: ^1.0
README
A library for using the Dandomain Pay API to make payments in the Dandomain webshop system
Install
Via Composer
$ composer require loevgaard/dandomain-pay-php-sdk
Usage
Create Payment from ServerRequestInterface
<?php use Loevgaard\Dandomain\Pay\Model\Payment; /** * The $request need to implement the PSR7 ServerRequestInterface * * @var \Psr\Http\Message\ServerRequestInterface $request */ $payment = Payment::createFromRequest($request);
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.