Skip to content

netgiro/magento-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 

Repository files navigation

Magento Payment Gateway plugins for Netgiro

Netgiro plugin is available in Magento Marketplace

For any extra information or questions please contact us at netgiro@netgiro.is.

Test environment inside docker

Run docker-compose to setup all necessary containers

docker-compose up -d

You can access your magento on http://localhost
You can access Magento admin on http://localhost/admin
Username: admin
password meerko1

Docker for windows

If you get the Invalid kernel settings. Elasticsearch requires at least: vm.max_map_count = 262144 error you need to run wsl and then this command

sysctl -w vm.max_map_count=262144

Volumes are stored in

\\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes\

Extension is stored in

\\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes\magento-plugin_magento_data\_data\vendor\netgiro\gateway

Install extension from marketplace

  1. Please ensure you are using correct access keys (My Profile - Access Keys)
  2. Paste the access keys in your auth.json file inside your project
  3. Use the "composer require netgiro/gateway:1.0.4" command to add the extension to Magento.

Magento CLI commands

When you install the extension its disabled you need to enable it

cd /bitnami/magento
composer require netgiro/gateway:2.0.1
magento module:status netgiro_gateway
magento module:enable netgiro_gateway --clear-static-content
magento setup:upgrade
magento setup:di:compile
magento cache:clean
magento cache:flush

Development environment

To add latest development version of plugin to environment run and enable it with command

docker cp ./magento_netgiro magent-netgiro-plugin_magento_1:/bitnami/magento/app/code/netgiro &&
docker exec -it magent-netgiro-plugin_magento_1 bash

cd /bitnami/magento &&
php bin/magento module:enable netgiro_gateway &&
php bin/magento setup:upgrade &&
php bin/magento setup:di:compile &&
php bin/magento cache:clean &&
php bin/magento cache:flush

Known issues

When performing refund and the magento framework throws an error then it is possible that the refund gets refunded in Netgíró without any indication that the refund was successful in the magento UI - Possible solution would be to cancel the whole order and create a new one with.

In the change call i send inn "quantity"=> 1000, it should be "quantity"=> 1.