How to get current environment type value for braintree payment method using programmatically magento?

We can get the current environment type value by programmatically checking the current mode setup in the admin configuration.

There will be two possible environment types sandbox and production.

You need to create a PHP Class to render the function to fetch the current environment mode value, Continue reading “How to get current environment type value for braintree payment method using programmatically magento?”

How to Create Custom Offline Payment Method using Standard way in Magento 2?

Create a Custom Offline Payment gateway in Magento 2 without the use of AbstractModel.

Using class Magento\Payment\Model\Method\Adapter with virtualType to make it compatible with the latest Magento standard practice to create a payment method.

For the offline Payment method with the configuration setting from the admin panel, you can enable/disable the payment method with the Payment method title. We will create a simple Purchase Order Payment method. Continue reading “How to Create Custom Offline Payment Method using Standard way in Magento 2?”

How to Move Billing Address Before the Payment Method in checkout Magento 2?

By Default, the Billing address will be display with the Payment method, and the second OOTB option to display payment method is on the Payment page.

The payment page Options used to display the Billing address after the payment method. OOTB Billing address Display Options

You have a custom requirement like, Display the Billing address before all the payment methods you need to do customization for that. Continue reading “How to Move Billing Address Before the Payment Method in checkout Magento 2?”