A PHP SDK for AltaPay
A library for making requests to the Altapay API.
$ 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
If you discover any security related issues, please email
firstname.lastname@example.org instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.