This project provides Payum with a Gateway wrapper around the NETS Netaxept API.
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));
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.
Copyright (c) Forenede Danske Motorejere (FDM). All rights reserved.
Licensed under the MIT License.