fdm / payum-netaxept
A Payum gateway interface to the Netaxept API
Requires
- php: ^7.1
- fdm/netaxept: @stable
- payum/payum: @stable
- php-http/guzzle6-adapter: ^1.1
Requires (Dev)
- phpstan/phpstan: ^0.9.2
- phpunit/phpunit: ^7.2
- symplify/easy-coding-standard: ^4.4
This package is auto-updated.
Last update: 2020-09-06 00:12:55 UTC
README
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.