A library for making requests to the Altapay API.
Via Composer
$ composer require loevgaard/altapay-php-sdk
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);
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email joachim@loevgaard.dk
instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.