fronty/sylius-netaxept

Integration of Netaxept API to Sylius as a new payment method.

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:sylius-plugin

v0.2 2019-12-18 15:18 UTC

This package is auto-updated.

Last update: 2024-04-19 01:12:01 UTC


README

Integration of Nets (Netaxept) payment gateway to Sylius as a new payment method.

Big thanks to FDM and his Netaxept Payum bundle.

Check my other Sylius plugin for IMoje.pl payments.

Installation

$ composer require fronty/sylius-netaxept

Add plugin dependencies to your AppKernel.php file:

public function registerBundles()
{
    return array_merge(parent::registerBundles(), [
        ...

        new \Fronty\SyliusNetaxeptPlugin\FrontySyliusNetaxeptPlugin(),
    ]);
}

Beware

This plugin introduces only very simple Netaxept implementation, it only handles payment registration and authorization. It doesn't do any refunds when order is storned etc. This plugin is not tested, therefore it's not an official Sylius plugin. Please be careful. If you'd like to add testing, you are more than welcome to send PR!

Usage

Sandbox (testing mode)

Go to Sylius admin and create new payment method of Netaxept type. Choose Testing environment and fill in the Merchant ID and Token fiels. You should receive these credentials when you registered a Netaxept account.

Production

After you receive Netaxept production credentials, fill these to the payment method fields and switch the environment to Production. That's all :)

Todo

  • Tests to become an official Sylius plugin :)
  • Refunds implementation
  • Separate Register, Capture and Authorize Payum actions (everything is in capture action now)
  • Notification implementation