Giter Site home page Giter Site logo

magento's Introduction

FortisPay for Magento 2.4.4 and higher

Composer Requirement

This payment plugin requires the composer package ramsey/uuid.This is usually installed as a dependency of the Magento Framework and does not have to be installed separately.

If for some reason it is not installed run the following command from the project root: composer require ramsey/uuid

Installation

  • Unzip the contents of the zip file to a temporary directory on your computer.
  • Use an FTP client to upload the contents to the {{project_root}}/app/code directory of your Magento installation. The resultant directory structure should be {{project_root}}/app/code/Fortispay/Fortis.
  • From the project root run the following commands:
  • bin/magento module:enable Fortispay_Fortis.
  • bin/magento setup:upgrade.
  • bin/magento setup:di:compile.
  • bin/magento setup:static-content:deploy. This may not be necessary depending on your setup.
  • bin/magento indexer:reindex.
  • bin/magento cache:clean.

You will then be able to configure the plugin via the admin portal at Stores/Configuration/Sales/Payment Methods.

Level 3 Data

If your Fortis account has Level 3 Data enabled additional custom attributes have to be configured on products for Level 3 Data to be successfully updated:

  • Create two new product attributes (if they do not exist) with the names commodity_code and unit_code.
  • Add these attributes to products, and set the value for each attribute in each product.
  • If these values are not configured checkout and payment will proceed normally, but the Level 3 Data will not be populated and an exception will be logged in the Magento logs.
  • The commodity_code value is a string of between 1-12 characters, and is "An international description code of the individual good or service being supplied."
  • The unit_code value is a string 3 characters long that describes "Units of measurement as used in international trade." Further information on this may be found at https://docs.fortispay.com/developers/api/endpoints/level3data#codesforunitsofmeasurement.

PHP Code Standards

  • vendor/bin/phpcs --standard=Magento2 --extensions=php,phtml --error-severity=10 --ignore-annotations Fortispay/Fortis/

magento's People

Contributors

appinlet avatar

Watchers

Kevin Shamoun avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.