# Mage2 Module Ktpl Payfort
``ktpl/module-payfort``
- [Main Functionalities](#markdown-header-main-functionalities)
- [Installation](#markdown-header-installation)
- [Configuration](#markdown-header-configuration)
- [Specifications](#markdown-header-specifications)
- [Attributes](#markdown-header-attributes)
## Main Functionalities
This module is created for Payfort payment integration
## Installation
\* = in production please use the `--keep-generated` option
### Type 1: Zip file
- Unzip the zip file in `app/code/Ktpl`
- Enable the module by running `php bin/magento module:enable Ktpl_Payfort`
- Apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`
### Type 2: Composer
- Make the module available in a composer repository for example:
- private repository `repo.magento.com`
- public repository `packagist.org`
- public github repository as vcs
- Add the composer repository to the configuration by running `composer config repositories.repo.magento.com composer https://repo.magento.com/`
- Install the module composer by running `composer require ktpl/module-payfort`
- enable the module by running `php bin/magento module:enable Ktpl_Payfort`
- apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`
## Configuration
- Payfort - payment/payfort/*
## Specifications
- API Endpoint
- POST - Ktpl\Payfort\Api\NotificationManagementInterface > Ktpl\Payfort\Model\NotificationManagement
- API Endpoint
- POST - Ktpl\Payfort\Api\WebhookManagementInterface > Ktpl\Payfort\Model\WebhookManagement
- Cronjob
- ktpl_payfort_refund
- Controller
- frontend > payfort/response/tokenize
- Payment Method
- Payfort
## Attributes
``ktpl/module-payfort``
- [Main Functionalities](#markdown-header-main-functionalities)
- [Installation](#markdown-header-installation)
- [Configuration](#markdown-header-configuration)
- [Specifications](#markdown-header-specifications)
- [Attributes](#markdown-header-attributes)
## Main Functionalities
This module is created for Payfort payment integration
## Installation
\* = in production please use the `--keep-generated` option
### Type 1: Zip file
- Unzip the zip file in `app/code/Ktpl`
- Enable the module by running `php bin/magento module:enable Ktpl_Payfort`
- Apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`
### Type 2: Composer
- Make the module available in a composer repository for example:
- private repository `repo.magento.com`
- public repository `packagist.org`
- public github repository as vcs
- Add the composer repository to the configuration by running `composer config repositories.repo.magento.com composer https://repo.magento.com/`
- Install the module composer by running `composer require ktpl/module-payfort`
- enable the module by running `php bin/magento module:enable Ktpl_Payfort`
- apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`
## Configuration
- Payfort - payment/payfort/*
## Specifications
- API Endpoint
- POST - Ktpl\Payfort\Api\NotificationManagementInterface > Ktpl\Payfort\Model\NotificationManagement
- API Endpoint
- POST - Ktpl\Payfort\Api\WebhookManagementInterface > Ktpl\Payfort\Model\WebhookManagement
- Cronjob
- ktpl_payfort_refund
- Controller
- frontend > payfort/response/tokenize
- Payment Method
- Payfort
## Attributes