fdm/payum-netaxept

This package is abandoned and no longer maintained. No replacement package was suggested.

A Payum gateway interface to the Netaxept API

v0.9.0 2018-06-25 09:06 UTC

This package is auto-updated.

Last update: 2020-09-06 00:12:55 UTC


README

Software License Build Status Latest Stable Version codecov Scrutinizer Code Quality

This project provides Payum with a Gateway wrapper around the NETS Netaxept API.

Using the library

To install using composer:

composer require fdm/payum-netaxept

Then, in your code somewhere, get a gateway instance and use it, for example:

$payment = $myPaymentStorage->getPayment(); // Returns a payment object
$gatewayFactory = new \FDM\Payum\Netaxept\NetaxeptGatewayFactory();
$gateway = $gatewayFactory->create([
    'merchantId' => $merchantId,
    'token' => $token,
    'sandbox' => true,
    'letNetaxeptGenerateTransactionId' => true,
    'transactionIdTemplate' => ''
]);
$gateway->execute(new \Payum\Core\Request\Capture($payment));

Contributing

Some tools are provided to ease development. Clone the project and run make docker-start to start a PHP Docker container. Run make docker-shell in order to get a shell inside the container. Run composer install to install dependencies. Run make test from inside the container to run tests, and make codecheck to make sure your code follows standards.

License

Copyright (c) Forenede Danske Motorejere (FDM). All rights reserved.

Licensed under the MIT License.