loevgaard/altapay-php-sdk

A PHP SDK for AltaPay

v3.0.0 2017-12-06 11:29 UTC

This package is auto-updated.

Last update: 2024-11-06 10:35:45 UTC


README

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

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.