Create a Plugin for Save Payment Information Checkout Magento 2.

You can create a Plugin for the method SavePaymentInformation() in Magento 2 to add your logic before or after Payment information is saved.

The method will be called after a click on the Place order button from the second step of the Checkout page.

Original Class to create plugin:
Magento\Checkout\Model\PaymentInformationManagement Continue reading “Create a Plugin for Save Payment Information Checkout Magento 2.”

How to Get Store VAT number Magento 2?

You can get the Store VAT number from the Store configuration section in Magento Admin Panel.

You can retrieve the store Vat number from the admin panel wit below steps,
1. Stores -> Configuration -> General -> General
2. Store Information -> VAT NUMBER. Continue reading “How to Get Store VAT number Magento 2?”

Get Default Country code from the current website Magento 2.

Get Default Country Value from the Current Website Using Programmatic way in Magento 2.

You can get the value of default country from the admin panel,
1. Stores -> Configuration -> General -> General
2. Country Options Tab -> Default Country.
Check the Selected Country value for the current website by set Store view as website scope. Continue reading “Get Default Country code from the current website Magento 2.”