loevgaard/dandomain-pay-php-sdk

A library for using the Dandomain Pay API to make payments in the Dandomain webshop system

v3.5.0 2017-12-13 13:56 UTC

README

Dandomain Pay PHP SDK

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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.