Tag: PHP

  • Project Setup for Invoice Management System

    Project Setup for Invoice Management System

    In this post we are going to setup project source files for Invoice Management System.

  • Composer Patches

    I was never the type of developer who uses patches. Usually, when working with Magento 2, I create a new package, or also known as a Magento 2 module to fix a bug. For the last 2 years, I use patching to apply a fix in a vendor directory in case there is a problem […]

  • Magento 2.1.3 Payment Changes Overview and Recommendations

    New Magento 2.1.3 and Magento 2.0.11 releases include payment enhancements and improvements. Changes affect Paypal, Braintree and Authorize.Net payment modules in Magento Community Edition. In this article, I review changes in the Magento\Payment module. Also, I will answer the question about backward compatibility for custom payment integrations. After reading this article you will know: What have new […]

  • Database Query Logging in Magento 2

    In Magento 2.x as well as Magento 1.x there is an option to enable database logging. It allows to profile all queries in the system and perform optimization if necessary. In this article, I will show you how to enable database logging for MySQL adapter in Magento 2. In my previous article, I wrote about separate […]

  • Magento 2 Modal Widget in Use

    In this article, I will show you how to implement new Module Version field for your Custom Module configuration by using JavaScript Modal Widget component from Magento 2 UI Library. Overview Let’s say you want to show module version somewhere on the configuration settings page of a custom module. It might be helpful for Merchants […]

  • Setting Payment Additional Data in Magento 2

    Magento team constantly addresses security issues when it comes to payment integrations. One of the improvements were changes into the Magento\Payment module. The Magento\Payment module is no longer responsible for setting Payment data for the Magento\Sales\Model\Order\Payment object. Starting from the Magento 2.0.6 release and further Magento 2.1 release custom payment module should be responsible for adding all necessary Payment information into the Payment object. In […]

  • New Database Connection in Magento 2

    Magento 2 gives a flexible mechanism for managing database connections. This feature was slightly refactored compare to Magento 1.x release. In this article, we will set up new database connection for custom resource model in Magento 2. Overview After successful installation, Magento 2 system creates app/etc/env.php configuration file. This file is most important due to a sensitive […]

  • Magento 2 Module in a Separate Repository

    In this article I will share my personal experience on how to build a Magento 2 Module outside of Magento 2 app/code directory. Having Magento 2 module in a separate repository might be useful in case you are planning to share it later with the community or sell it from Magento Marketplace. Other than that, […]

  • Magento 2 Payment Gateway API

    In the article we are going to review new Payment Service Contracts (or Payment Gateway API) introduced in Magento 2. I will guide you through Command Interfaces and Service Classes which will help you to use it in further integrations with Payment Service Providers. After reading this article you will: Understand Payment Gateway API Get […]

  • Test Driven Development in Practice – Part 2

    This article is a continuation of Test Driven Development in Practice – Part 1 article. In order to start refactoring we need to be sure our method is covered with Unit Tests. There are 5 Payment methods covered out-of-the-box in the 0.74.0-beta3 release. None of tests covers Payment::registerPaymentReviewAction() and it seems like we need to […]