Skip to content

Add a specific fee to the payment in Magento 2

Notifications You must be signed in to change notification settings

jemoon/module-payment-fees

 
 

Repository files navigation

Boolfly Payment Fee

Add a specific fee to the payment in Magento 2

The same license with Magento application: https://opensource.org/licenses/OSL-3.0

Re-construct module to follow the logic of this extension: https://github.com/devromans/payment-fee

Thanks to @devromans

Welcome any feedback and contributor.

Install with Composer

composer config repositories.mrkhoa99boolfly_payment_fee vcs https://github.com/mrkhoa99/Boolfly_payment_fee.git

composer require --prefer-source 'boolfly/payment-fee:*'

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento cache:flush

Technical Guide

-We can create an offline payment method here: http://cedcommerce.com/magento-2-module-creator/payment-module

-We can follow this guide to add a specific fee to order total: http://magento.stackexchange.com/questions/92774/how-to-add-fee-to-order-totals-in-magento2

-Replace a default JS component: http://devdocs.magento.com/guides/v2.0/javascript-dev-guide/javascript/custom_js.html

Admin Config:

**STORES > Configuration > SALES > Payment Fee**

Boolfly Payment admin config

Creating order Admin

Boolfly Payment fee for creating order admin

Checkout Page:

Boofly Payment fee on checkout Page

Tested: Magento 2.1.2

About

Add a specific fee to the payment in Magento 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.1%
  • PHP 35.5%
  • HTML 1.4%