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
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
-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
**STORES > Configuration > SALES > Payment Fee**Tested: Magento 2.1.2