Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

fdmweb/FDM-payum-netaxept

Repository files navigation

Payum Gateway Integration for NETS Netaxept

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.

About

A Payum gateway compatible implementation of the NETS Netaxept API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published